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
Required methods
fn deserialize_enum(s: Self::Proxy) -> Result<NE, RBoxError>
fn deserialize_enum(s: Self::Proxy) -> Result<NE, RBoxError>
Deserializes an enum from its proxy type.