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_ord(ord: u8) -> Option<FieldName> { ... }
    fn variant_ord(&self) -> u8 { ... }
}

Required Associated Constants§

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§