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

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

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,that implement InterfaceType).

Associated Types

type Proxy

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

Loading content...

Required methods

fn deserialize_enum(s: Self::Proxy) -> Result<NE, RBoxError>

Deserializes an enum from its proxy type.

Loading content...

Implementors

Loading content...