Skip to main content

image_mime_for

Function image_mime_for 

Source
pub fn image_mime_for(path: &Path) -> &'static str
Expand description

The image/<subtype> MIME type for a recognized image extension, for the data: URL — falls back to png for anything is_image_path didn’t already gate (defensive; never actually hit through is_image_path’s own extension list).