pub trait ConfigEnum: Sized {
// Required methods
fn variants() -> &'static [Self];
fn variant_info() -> &'static [ConfigEnumVariantInfo];
fn as_str(&self) -> &'static str;
fn name(&self) -> &'static str;
fn description(&self) -> Option<&'static str>;
}Required Methods§
fn variants() -> &'static [Self]
fn variant_info() -> &'static [ConfigEnumVariantInfo]
fn as_str(&self) -> &'static str
fn name(&self) -> &'static str
fn description(&self) -> Option<&'static str>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".