[][src]Trait abi_stable::nonexhaustive_enum::SerializeEnum

pub trait SerializeEnum<NE> {
    type Proxy;
    pub fn serialize_enum(this: &NE) -> Result<Self::Proxy, RBoxError>;
}

Describes how some enum is serialized.

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

Associated Types

type Proxy[src]

The intermediate type the NE is converted into,to serialize it.

Loading content...

Required methods

pub fn serialize_enum(this: &NE) -> Result<Self::Proxy, RBoxError>[src]

Serializes an enum into its proxy type.

Loading content...

Implementors

Loading content...