Skip to main content

get_media_extensions

Function get_media_extensions 

Source
pub fn get_media_extensions(
    media_type: &MediaType,
) -> Option<&'static [&'static str]>
Expand description

Get a list of known extensions for a given MediaType.

Parameters are ignored: only the type and subtype are searched.

Returns None if the media type is unknown. See get_extensions for the wildcard behavior.