pub fn detect_extension(path: &Path) -> Option<Format>
Maps a file extension to a Format, if recognized.
Format