Snap for 12296955 from 3d232ad32b689d35f0361d8f59f7ea2f4183c463 to 24Q4-release Change-Id: I1573ca1cff5b3091520f534df29f48e3c53e5f4a
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! } }