Function mime_guess::get_mime_type_opt

source ยท
pub fn get_mime_type_opt(search_ext: &str) -> Option<Mime>
๐Ÿ‘ŽDeprecated since 2.0.0: use from_ext(search_ext).first() instead
Expand description

Get the MIME type associated with a file extension.

If there is no association for the extension, or ext is empty, None is returned.