Skip to main content

detect_kind

Function detect_kind 

Source
pub fn detect_kind(path: &Path, bytes: &[u8]) -> SourceKind
Expand description

Best-effort source-kind detection from magic bytes first, extension second.