Skip to main content

detect

Function detect 

Source
pub fn detect(path: &Path) -> Option<Lang>
Expand description

Resolve a path’s extension to a Lang, or None if unsupported.