[][src]Trait packed_struct::prelude::PrimitiveEnumDynamicStr

pub trait PrimitiveEnumDynamicStr where
    Self: Sized + Copy + PrimitiveEnum
{ fn to_display_str(&self) -> Cow<'static, str>;
fn all_variants() -> Cow<'static, [Self]>; }

Dynamic display formatters.

Required methods

fn to_display_str(&self) -> Cow<'static, str>

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

fn all_variants() -> Cow<'static, [Self]>

A list all possible string variants.

Loading content...

Implementors

impl<E> PrimitiveEnumDynamicStr for EnumCatchAll<E> where
    E: PrimitiveEnum + PrimitiveEnumDynamicStr
[src]

fn to_display_str(&self) -> Cow<'static, str>[src]

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

Loading content...