1 2 3 4 5 6 7 8 9 10 11
use crate::Parcel;
/// An `enum` type.
pub trait Enum : Parcel {
/// The type used to store the enum discriminant
type Discriminant: Parcel;
/// Gets the discriminator of the current variant.
fn discriminator(&self) -> Self::Discriminant;
}