Function subparse::get_subtitle_format_by_ending_err [] [src]

pub fn get_subtitle_format_by_ending_err(ending: &str) -> Result<SubtitleFormat>

Returns the subtitle format by the file ending.

Works exactly like get_subtitle_format_by_ending, but instead of None a UnknownFileFormat will be returned (for simpler error handling).