pub trait ThriftEnum: Sized {
    // Required methods
    fn enumerate() -> &'static [(Self, &'static str)];
    fn variants() -> &'static [&'static str];
    fn variant_values() -> &'static [Self];
}

Required Methods§

source

fn enumerate() -> &'static [(Self, &'static str)]

source

fn variants() -> &'static [&'static str]

source

fn variant_values() -> &'static [Self]

Object Safety§

This trait is not object safe.

Implementors§