pub fn detect_file_format(
file: &File,
payload: &mut dyn PayloadSource,
expected_category: Option<FormatCategory>,
) -> Option<FormatId>Expand description
Evaluates multiple detection signals for an io/file File and produces
the top matching FormatId, optionally restricted to a specific category.