pub trait EnumFull: Enum {
// Required methods
fn descriptor(&self) -> EnumValueDescriptor;
fn enum_descriptor() -> EnumDescriptor;
}
Expand description
Trait is implemented for all enum types if lite runtime is not requested.
This trait provides access to runtime reflection.
Required Methods§
Sourcefn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
Sourcefn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
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.