Trait protobuf::core::ProtobufEnum [] [src]

pub trait ProtobufEnum: Eq + Sized + Copy + 'static {
    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

Implementors