Trait glib::variant::FromVariant
source · pub trait FromVariant: Sized + StaticVariantType {
// Required method
fn from_variant(variant: &Variant) -> Option<Self>;
}
Expand description
Extracts a value.
Required Methods§
sourcefn from_variant(variant: &Variant) -> Option<Self>
fn from_variant(variant: &Variant) -> Option<Self>
Tries to extract a value.
Returns Some
if the variant’s type matches Self
.
Object Safety§
This trait is not object safe.