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

Display value, same as the name of a particular variant.

Important traits for &'a [u8]

A list all possible string variants.

Implementors