Trait EnumUnitary

Source
pub trait EnumUnitary:
    Clone
    + Into<i64>
    + Into<u64>
    + Into<isize>
    + Into<usize>
    + ToPrimitive
    + FromPrimitive
    + Sequence { }
Expand description

A collection of constraints for unitary enums.

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§