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§
fn variants() -> &'static [Self]
fn val_to_int(&self) -> isize
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.