pub trait ThriftEnum: Sized {
// Required methods
fn enumerate() -> &'static [(Self, &'static str)];
fn variants() -> &'static [&'static str];
fn variant_values() -> &'static [Self];
}Required Methods§
fn enumerate() -> &'static [(Self, &'static str)]
fn variants() -> &'static [&'static str]
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.