Merge remote-tracking branch 'origin/upstream' am: b636849df3 am: 4d1dca7814 Original change: undetermined Change-Id: Ib9d969d8329d3c1ddbdd4d0adf758a8e317fbca7 Signed-off-by: Automerger Merge Worker <[email protected]>
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! } }