is_valid_extension_for_subtitle_format

Function is_valid_extension_for_subtitle_format 

Source
pub fn is_valid_extension_for_subtitle_format(
    extension: Option<&OsStr>,
    format: SubtitleFormat,
) -> bool
Expand description

Returns true if the file extension is valid for the given subtitle format.

Option is used to simplify handling with PathBuf::extension().