Skip to main content

language_from_path

Function language_from_path 

Source
pub fn language_from_path(path: &Path) -> Option<String>
Expand description

The language id for a path: well-known extension-less filenames first (Dockerfile), then the extension.