Trait packed_struct::prelude::PrimitiveEnumDynamicStr [−][src]
pub trait PrimitiveEnumDynamicStr where
Self: Sized + Copy + PrimitiveEnum, {
fn to_display_str(&self) -> Cow<'static, str>;
fn all_variants() -> Cow<'static, [Self]>;
}
Expand description
Dynamic display formatters.
Required methods
fn 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.
fn all_variants() -> Cow<'static, [Self]>
fn all_variants() -> Cow<'static, [Self]>
A list all possible string variants.