protobuf

Trait OneofFull

Source
pub trait OneofFull: Oneof {
    // Required method
    fn descriptor() -> OneofDescriptor;
}
Expand description

Implemented by all oneof types when lite runtime is not enabled.

Required Methods§

Source

fn descriptor() -> OneofDescriptor

Descriptor object for this oneof.

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§