[][src]Function mime_guess::get_mime_type_opt

pub fn get_mime_type_opt(search_ext: &str) -> Option<Mime>
Deprecated since 2.0.0:

use from_ext(search_ext).first() instead

Get the MIME type associated with a file extension.

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