Function gdk4::intern_mime_type[][src]

pub fn intern_mime_type(string: &str) -> Option<GString>
Expand description

Canonicalizes the given mime type and interns the result.

If @string is not a valid mime type, None is returned instead. See RFC 2048 for the syntax if mime types.


string of a potential mime type


An interned string for the canonicalized mime type or None if the string wasn’t a valid mime type