pub fn file_extension(path: &str) -> String
The lowercased extension of path (the part after the last .), or empty when there is none or the only dot is a leading one (a dotfile has no extension).
path
.