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

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>

Converts to a string slice.

Trait Implementations

impl Sync for VariantType

impl Hash for VariantType

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Into<Cow<'a, VariantTy>> for VariantType

Performs the conversion.

impl<'a, 'b> PartialEq<VariantType> for String

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<str> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantType> for VariantTy

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<String> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantType> for str

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<&'a str> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantType> for &'a str

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<VariantType> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'b> PartialEq<VariantTy> for VariantType

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for VariantType

impl Drop for VariantType

Executes the destructor for this type. Read more

impl Borrow<VariantTy> for VariantType

Immutably borrows from an owned value. Read more

impl Clone for VariantType

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for VariantType

Formats the value using the given formatter. Read more

impl Display for VariantType

Formats the value using the given formatter. Read more

impl Deref for VariantType

The resulting type after dereferencing.

Dereferences the value.

impl Send for VariantType