IIntEnum

Trait IIntEnum 

Source
pub trait IIntEnum: Sized {
    // Required methods
    fn variants() -> &'static [Self];
    fn val_to_int(&self) -> isize;
    fn int_to_val(src: isize) -> Result<Self, InvalidEnumValue<isize>>;
}

Required Methods§

Source

fn variants() -> &'static [Self]

Source

fn val_to_int(&self) -> isize

Source

fn int_to_val(src: isize) -> Result<Self, InvalidEnumValue<isize>>

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§