Trait glib::variant::FromVariant[][src]

pub trait FromVariant: Sized + StaticVariantType {
    fn from_variant(variant: &Variant) -> Option<Self>;
}

Extracts a value.

Required Methods

Tries to extract a value.

Returns Some if the variant's type matches Self.

Implementations on Foreign Types

impl FromVariant for u8
[src]

impl FromVariant for i16
[src]

impl FromVariant for u16
[src]

impl FromVariant for i32
[src]

impl FromVariant for u32
[src]

impl FromVariant for i64
[src]

impl FromVariant for u64
[src]

impl FromVariant for f64
[src]

impl FromVariant for bool
[src]

impl FromVariant for String
[src]

Implementors