protobuf

Trait EnumFull

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

Source

fn descriptor(&self) -> EnumValueDescriptor

Get enum value descriptor.

Source

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.

Implementors§