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.
Object Safety§
This trait is not object safe.