Struct reqwest::mime::Name
[−]
[src]
pub struct Name<'a> { /* fields omitted */ }
A section of a Mime
.
For instance, for the Mime image/svg+xml
, it contains 3 Name
s,
image
, svg
, and xml
.
In most cases, Name
s are compared ignoring case.
Trait Implementations
impl<'a> Display for Name<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a> PartialOrd<Name<'a>> for Name<'a>
[src]
fn partial_cmp(&self, __arg_0: &Name<'a>) -> Option<Ordering>
fn lt(&self, __arg_0: &Name<'a>) -> bool
fn le(&self, __arg_0: &Name<'a>) -> bool
fn gt(&self, __arg_0: &Name<'a>) -> bool
fn ge(&self, __arg_0: &Name<'a>) -> bool
impl<'a> AsRef<str> for Name<'a>
[src]
impl<'a> Copy for Name<'a>
[src]
impl<'a> Ord for Name<'a>
[src]
impl<'a> Eq for Name<'a>
[src]
impl<'a> Hash for Name<'a>
[src]
impl<'a> PartialEq<Name<'a>> for Name<'a>
[src]
fn eq(&self, __arg_0: &Name<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Name<'a>) -> bool
This method tests for !=
.
impl<'a, 'b> PartialEq<&'b str> for Name<'a>
[src]
fn eq(&self, other: &&'b str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'a> Debug for Name<'a>
[src]
impl<'a> Clone for Name<'a>
[src]
fn clone(&self) -> Name<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more