Trait glib::variant::FromVariant
[−]
[src]
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
.