Trait protocol::Enum[][src]

pub trait Enum: Parcel {
    type Discriminant: Parcel;
    fn discriminator(&self) -> Self::Discriminant;
}
Expand description

An enum type.

Associated Types

The type used to store the enum discriminant

Required methods

Gets the discriminator of the current variant.

Implementors