Trait StrictEnum

Source
pub trait StrictEnum
where Self: StrictSum + Copy + TryFrom<u8, Error = VariantError<u8>>, u8: From<Self>,
{ // Provided methods fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>> { ... } fn strict_type_info() -> TypeInfo<Self> { ... } }

Provided Methods§

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§