Skip to main content

path_language

Function path_language 

Source
pub fn path_language(path: &str) -> Option<String>
Expand description

Derive a human-readable language name from a file path.

  • Returns Some("Rust") for paths with a recognized extension.
  • Returns None for paths with no extension or an unrecognized extension.