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]

[src]

impl FromVariant for i16
[src]

[src]

impl FromVariant for u16
[src]

[src]

impl FromVariant for i32
[src]

[src]

impl FromVariant for u32
[src]

[src]

impl FromVariant for i64
[src]

[src]

impl FromVariant for u64
[src]

[src]

impl FromVariant for f64
[src]

[src]

impl FromVariant for bool
[src]

[src]

impl FromVariant for String
[src]

[src]

Implementors