Snap for 12252487 from f448de29cbd1021a22f02f7ea1023bf9c224ed77 to simpleperf-release Change-Id: I8bb1320c0cc863f7dfed9b4d1b387425471c19ad
Support MIME (Media Types) as strong types in Rust.
extern crate mime; // common types are constants let text = mime::TEXT_PLAIN; // deconstruct Mimes to match on them match (text.type_(), text.subtype()) { (mime::TEXT, mime::PLAIN) => { // plain text! }, (mime::TEXT, _) => { // structured text! }, _ => { // not text! } }