pub trait StrictEnum{
// Provided methods
fn from_variant_name(
name: &VariantName,
) -> Result<Self, VariantError<&VariantName>> { ... }
fn strict_type_info() -> TypeInfo<Self> { ... }
}
Provided Methods§
fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
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.