Skip to main content

language_for_file

Function language_for_file 

Source
pub fn language_for_file(path: &Path) -> Option<Language>
Expand description

Determine the language for a file based on its extension. Delegates to Language::extensions() — single source of truth.