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

Extracts a value.

Required Methods

Tries to extract a value.

Returns Some if the variant’s type matches Self.

Implementations on Foreign Types

Implementors