Struct gmime::VariantType [−]
pub struct VariantType { /* fields omitted */ }Describes Variant types.
The Variant type system (based on the D-Bus one) describes types with
"type strings". VariantType is an owned immutable type string (you can
think of it as a Box<str> statically guaranteed to be a valid type
string), &VariantTy is a borrowed one (like &str).
Methods
impl VariantType
impl VariantTypepub fn new(type_string: &str) -> Result<VariantType, ()>
pub fn new(type_string: &str) -> Result<VariantType, ()>Tries to create a VariantType from a string slice.
Returns Ok if the string is a valid type string, Err otherwise.
Methods from Deref<Target = VariantTy>
Trait Implementations
impl Sync for VariantType
impl Sync for VariantTypeimpl Hash for VariantType
impl Hash for VariantTypefn hash<H>(&self, state: &mut H) where
H: Hasher,
fn hash<H>(&self, state: &mut H) where
H: Hasher, 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, Feeds a slice of this type into the given [Hasher]. Read more
impl<'a> Into<Cow<'a, VariantTy>> for VariantType
impl<'a> Into<Cow<'a, VariantTy>> for VariantTypeimpl<'a, 'b> PartialEq<VariantType> for String
impl<'a, 'b> PartialEq<VariantType> for Stringfn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<str> for VariantType
impl<'a, 'b> PartialEq<str> for VariantTypefn eq(&self, other: &str) -> bool
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantTypefn eq(&self, other: &&'a VariantTy) -> bool
fn eq(&self, other: &&'a VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for VariantTy
impl<'a, 'b> PartialEq<VariantType> for VariantTyfn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<String> for VariantType
impl<'a, 'b> PartialEq<String> for VariantTypefn eq(&self, other: &String) -> bool
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for str
impl<'a, 'b> PartialEq<VariantType> for strfn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>
impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>fn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a str> for VariantType
impl<'a, 'b> PartialEq<&'a str> for VariantTypefn eq(&self, other: &&'a str) -> bool
fn eq(&self, other: &&'a str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for &'a str
impl<'a, 'b> PartialEq<VariantType> for &'a strfn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType
impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantTypefn eq(&self, other: &Cow<'a, VariantTy>) -> bool
fn eq(&self, other: &Cow<'a, VariantTy>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTyfn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<VariantType> for VariantType
impl PartialEq<VariantType> for VariantTypefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantTy> for VariantType
impl<'a, 'b> PartialEq<VariantTy> for VariantTypefn eq(&self, other: &VariantTy) -> bool
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for VariantType
impl Eq for VariantTypeimpl Drop for VariantType
impl Drop for VariantTypeimpl Borrow<VariantTy> for VariantType
impl Borrow<VariantTy> for VariantTypeimpl Clone for VariantType
impl Clone for VariantTypefn clone(&self) -> VariantType
fn clone(&self) -> VariantTypeReturns 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)Performs copy-assignment from source. Read more
impl Debug for VariantType
impl Debug for VariantTypefn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Display for VariantType
impl Display for VariantTypefn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Deref for VariantType
impl Deref for VariantTypetype Target = VariantTy
The resulting type after dereferencing.
fn deref(&self) -> &VariantTy
fn deref(&self) -> &VariantTyDereferences the value.
impl Send for VariantType
impl Send for VariantType