pub fn detect_format_id(
data: Option<&[u8]>,
filename_or_ext: Option<&str>,
expected_category: Option<FormatCategory>,
) -> Option<FormatId>Expand description
Backward-compatible detection function picking the top candidate’s FormatId.