pub trait PrimitiveEnumDynamicStr{
// Required methods
fn to_display_str(&self) -> Cow<'static, str>;
fn all_variants() -> Cow<'static, [Self]>;
}Expand description
Dynamic display formatters.
Required Methods§
Sourcefn to_display_str(&self) -> Cow<'static, str>
fn to_display_str(&self) -> Cow<'static, str>
Display value, same as the name of a particular variant.
Sourcefn all_variants() -> Cow<'static, [Self]>
fn all_variants() -> Cow<'static, [Self]>
A list all possible string variants.
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.