Trait packed_struct::PrimitiveEnumStaticStr [−][src]
pub trait PrimitiveEnumStaticStr where
Self: Sized + Copy + PrimitiveEnum, { fn to_display_str(&self) -> &'static str; fn all_variants() -> &'static [Self]; }
Static display formatters.
Required Methods
fn to_display_str(&self) -> &'static str
Display value, same as the name of a particular variant.
fn all_variants() -> &'static [Self]
A list all possible string variants.