detect_file_format

Function detect_file_format 

Source
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.