Struct glib::VariantType[][src]

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
[src]

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 Send for VariantType
[src]

impl Sync for VariantType
[src]

impl Drop for VariantType
[src]

Executes the destructor for this type. Read more

impl Borrow<VariantTy> for VariantType
[src]

Immutably borrows from an owned value. Read more

impl Clone for VariantType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Deref for VariantType
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Debug for VariantType
[src]

Formats the value using the given formatter. Read more

impl Display for VariantType
[src]

Formats the value using the given formatter. Read more

impl Hash for VariantType
[src]

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
[src]

Performs the conversion.

impl StaticType for VariantType
[src]

Returns the type identifier of Self.

impl SetValue for VariantType
[src]

impl SetValueOptional for VariantType
[src]

impl<'a> FromValueOptional<'a> for VariantType
[src]

impl PartialEq for VariantType
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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>
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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
[src]

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 String
[src]

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
[src]