[][src]Function mime_guess::get_extensions

pub fn get_extensions(
    toplevel: &str,
    sublevel: &str
) -> Option<&'static [&'static str]>

Get the extensions for a given top-level and sub-level of a MIME type ({toplevel}/{sublevel}).

Returns None if toplevel or sublevel are unknown.

Wildcards

If the top-level of the MIME type is a wildcard (*), returns all extensions.

If the sub-level of the MIME type is a wildcard, returns all extensions for the top-level.