Enum protobuf::well_known_types::Syntax [−][src]
pub enum Syntax { SYNTAX_PROTO2, SYNTAX_PROTO3, }
Variants
SYNTAX_PROTO2
SYNTAX_PROTO3
Trait Implementations
impl Clone for Syntax
[src]
impl Clone for Syntax
fn clone(&self) -> Syntax
[src]
fn clone(&self) -> Syntax
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Syntax
[src]
impl PartialEq for Syntax
fn eq(&self, other: &Syntax) -> bool
[src]
fn eq(&self, other: &Syntax) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Syntax
[src]
impl Eq for Syntax
impl Debug for Syntax
[src]
impl Debug for Syntax
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Syntax
[src]
impl Hash for Syntax
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl ProtobufEnum for Syntax
[src]
impl ProtobufEnum for Syntax
fn value(&self) -> i32
[src]
fn value(&self) -> i32
Get enum i32
value.
fn from_i32(value: i32) -> Option<Syntax>
[src]
fn from_i32(value: i32) -> Option<Syntax>
Try to create an enum from i32
value. Return None
if value is unknown. Read more
fn values() -> &'static [Self]
[src]
fn values() -> &'static [Self]
Get all enum values for enum type.
fn enum_descriptor_static() -> &'static EnumDescriptor
[src]
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
fn descriptor(&self) -> &'static EnumValueDescriptor
[src]
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
fn enum_descriptor(&self) -> &'static EnumDescriptor
[src]
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
impl Copy for Syntax
[src]
impl Copy for Syntax
impl Default for Syntax
[src]
impl Default for Syntax
impl ProtobufValue for Syntax
[src]
impl ProtobufValue for Syntax
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>