pub fn detect(input: &[u8]) -> Option<FormatKind>Expand description
Sniff the most likely format from a byte prefix.
Detection is heuristic and intentionally conservative: only formats with
strong structural signatures are reported. Ambiguous or unknown input
returns None; prefer an explicit format when the caller knows it.