Function subparse::is_valid_extension_for_subtitle_format [−][src]
pub fn is_valid_extension_for_subtitle_format(
extension: Option<&OsStr>,
format: SubtitleFormat
) -> bool
Returns true if the file extension is valid for the given subtitle format.
Option
is used to simplify handling with PathBuf::extension()
.