Struct gmime::ContentType [−]
pub struct ContentType(_, _);
Methods
impl ContentType
[src]
impl ContentType
pub fn new(type_: &str, subtype: &str) -> ContentType
[src]
pub fn new(type_: &str, subtype: &str) -> ContentType
Creates a Content-Type object with type type_
and subtype subtype
.
type_
the MIME type or None
for the default value
subtype
the MIME subtype or None
for the default value
Returns
a new ContentType
object.
pub fn parse<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
str: &str
) -> Option<ContentType>
[src]
pub fn parse<'a, P: Into<Option<&'a ParserOptions>>>(
options: P,
str: &str
) -> Option<ContentType>
Trait Implementations
impl Clone for ContentType
impl Clone for ContentType
fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ContentType
impl Debug for ContentType
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for ContentType
impl Hash for ContentType
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for ContentType
impl StaticType for ContentType
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for ContentType
impl<T: IsA<Object>> PartialEq<T> for ContentType
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> 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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ContentType
impl Eq for ContentType
impl IsA<Object> for ContentType
impl IsA<Object> for ContentType
Auto Trait Implementations
impl !Send for ContentType
impl !Send for ContentType
impl !Sync for ContentType
impl !Sync for ContentType