mime_guess

Function 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.