Trait abi_stable::nonexhaustive_enum::DeserializeEnum[][src]

pub trait DeserializeEnum<'borr, NE> {
    type Proxy;
    fn deserialize_enum(s: Self::Proxy) -> Result<NE, RBoxError>;
}
Expand description

Describes how a nonexhaustive enum is deserialized.

Generally this delegates to a library function, so that the implementation can be delegated to the implementation crate.

This is generally implemented by the interface of an enum (Enum_Interface for Enum),which also implements InterfaceType).

Associated Types

The intermediate type the NE is converted from,to deserialize it.

Required methods

Deserializes an enum from its proxy type.

Implementors