Trait enum_unitary::EnumUnitary [] [src]

pub trait EnumUnitary: Copy + Clone + Eq + Ord + PartialEq + PartialOrd + Send + Sync + Debug + Into<i64> + Into<u64> + Into<isize> + Into<usize> + Bounded + ToPrimitive + FromPrimitive {
    fn count_variants() -> usize;
fn iter_variants() -> Box<Iterator<Item = Self>>; }

A collection of constraints and methods for unitary enums.

See the enum_unitary! macro for defining instances of this trait.

Required Methods

Implementors