[−][src]Function rust_code_analysis::get_from_ext
pub fn get_from_ext(ext: &str) -> Option<LANG>
Detects the language associated to the input file extension.
Examples
use rust_code_analysis::get_from_ext; let ext = "rs"; get_from_ext(ext).unwrap();