Struct glib::VariantTy[][src]

pub struct VariantTy { /* fields omitted */ }

Describes Variant types.

This is a borrowed counterpart of VariantType. Essentially it's a str statically guaranteed to be a valid type string.

Methods

impl VariantTy
[src]

Tries to create a &VariantTy from a string slice.

Returns Ok if the string is a valid type string, Err otherwise.

Converts a type string into &VariantTy without any checks.

Converts to a string slice.

Trait Implementations

impl Borrow<VariantTy> for VariantType
[src]

Immutably borrows from an owned value. Read more

impl Debug for VariantTy
[src]

Formats the value using the given formatter. Read more

impl PartialEq 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 Eq for VariantTy
[src]

impl Hash for VariantTy
[src]

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

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

impl Sync for VariantTy
[src]

impl Display for VariantTy
[src]

Formats the value using the given formatter. Read more

impl<'a> Into<Cow<'a, VariantTy>> for &'a VariantTy
[src]

Performs the conversion.

impl ToOwned for VariantTy
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl StaticType for VariantTy
[src]

Returns the type identifier of Self.

impl SetValue for VariantTy
[src]

impl SetValueOptional for VariantTy
[src]

impl<'a> FromValueOptional<'a> for &'a VariantTy
[src]

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<'b, VariantTy>> 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<&'a VariantTy> for Cow<'b, 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 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<VariantTy> 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 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<VariantTy> 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<str> 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<&'a VariantTy> 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<String> 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<VariantTy> 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<'a, 'b> PartialEq<String> 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<&'a VariantTy> for String
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for VariantTy