ThriftEnum

Trait ThriftEnum 

Source
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]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§