Trait protobuf::core::ProtobufEnum
[−]
[src]
pub trait ProtobufEnum: Eq + Sized { fn value(&self) -> i32; fn from_i32(v: i32) -> Option<Self>; fn values() -> &'static [Self] { ... } fn descriptor(&self) -> &'static EnumValueDescriptor { ... } fn enum_descriptor(&self) -> &'static EnumDescriptor { ... } fn enum_descriptor_static(_: Option<Self>) -> &'static EnumDescriptor { ... } }
Required Methods
Provided Methods
fn values() -> &'static [Self]
fn descriptor(&self) -> &'static EnumValueDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor_static(_: Option<Self>) -> &'static EnumDescriptor
Implementors
impl ProtobufEnum for FieldDescriptorProto_Type
impl ProtobufEnum for FieldDescriptorProto_Label
impl ProtobufEnum for FileOptions_OptimizeMode
impl ProtobufEnum for FieldOptions_CType
impl ProtobufEnum for FieldOptions_JSType