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

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

Extracts a value.

Required methods

fn from_variant(variant: &Variant) -> Option<Self>

Tries to extract a value.

Returns Some if the variant's type matches Self.

Loading content...

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]

Loading content...

Implementors

Loading content...