pub trait StrictSum: StrictType {
    const ALL_VARIANTS: &'static [(u8, &'static str)];

    fn variant_name(&self) -> &'static str;

    fn strict_check_variants() { ... }
    fn variant_name_by_tag(tag: u8) -> Option<FieldName> { ... }
    fn variant_ord(&self) -> u8 { ... }
}

Required Associated Constants§

source

const ALL_VARIANTS: &'static [(u8, &'static str)]

Required Methods§

source

fn variant_name(&self) -> &'static str

Provided Methods§

Implementations on Foreign Types§

source§

impl<T> StrictSum for Box<T>where
    T: StrictSum,

source§

const ALL_VARIANTS: &'static [(u8, &'static str)] = T::ALL_VARIANTS

source§

fn variant_name(&self) -> &'static str

source§

impl<T> StrictSum for Option<T>where
    T: StrictType,

source§

const ALL_VARIANTS: &'static [(u8, &'static str)] = _

source§

fn variant_name(&self) -> &'static str

Implementors§