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

Portability Warning

This impl is for a platform-specific type. Any variants serialized from this type should be deserialized on the same machine.

Portability Warning

This impl is for a platform-specific type. Any variants serialized from this type should be deserialized on the same machine.

Implementors