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]

A method called when the value goes out of scope. 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

The method called to dereference a value

impl Debug for VariantType
[src]

Formats the value using the given formatter.

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 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<&'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<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<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<&'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<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 Eq for VariantType
[src]