Trait fsm::EnumTag [] [src]

pub trait EnumTag: Copy {
    fn tag_number(&self) -> usize;
    fn max_tag_number() -> usize;
}

Trait that should be trivially implementable for any C-Like Enum type

Required Methods

returns the discriminator tag for the enum (some_value as usize)

returns the highest discriminator tag for this enum

Implementors