Struct mime::Name [−][src]
pub struct Name<'a> { /* fields omitted */ }Expand description
A section of a Mime.
For instance, for the Mime image/svg+xml, it contains 3 Names,
image, svg, and xml.
In most cases, Names are compared ignoring case.
Implementations
Get the value of this Name as a string.
Note that the borrow is not tied to &self but the 'a lifetime, allowing the
string to outlive Name. Alternately, there is an impl<'a> From<Name<'a>> for &'a str
which isn’t rendered by Rustdoc, that can be accessed using str::from(name) or name.into().
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Name<'a>
impl<'a> UnwindSafe for Name<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
