Skip to main content

codec_for

Function codec_for 

Source
pub fn codec_for(mime_type: &str) -> Option<&'static dyn Codec>
Expand description

Look up a codec by MIME type.

Returns a static codec reference for the given MIME type, or None if the MIME type is not supported.