Enum prost_types::Syntax
[−]
[src]
pub enum Syntax { SyntaxProto2, SyntaxProto3, }
The syntax in which a protocol buffer element is defined.
Variants
SyntaxProto2
Syntax proto2
.
SyntaxProto3
Syntax proto3
.
Methods
impl Syntax
[src]
fn is_valid(value: i32) -> bool
[src]
Returns true
if value
is a variant of Syntax
.
fn from_i32(value: i32) -> Option<Syntax>
[src]
Converts an i32
to a Syntax
, or None
if value
is not a valid variant.
Trait Implementations
impl Default for Syntax
[src]
impl Clone for Syntax
[src]
fn clone(&self) -> Syntax
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Syntax
[src]
impl Debug for Syntax
[src]
impl PartialEq for Syntax
[src]
fn eq(&self, __arg_0: &Syntax) -> bool
[src]
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]
This method tests for !=
.