Enum prost_types::Syntax [] [src]

pub enum Syntax {
    SyntaxProto2,
    SyntaxProto3,
}

The syntax in which a protocol buffer element is defined.

Variants

Syntax proto2.

Syntax proto3.

Methods

impl Syntax
[src]

[src]

Returns true if value is a variant of Syntax.

[src]

Converts an i32 to a Syntax, or None if value is not a valid variant.

Trait Implementations

impl Default for Syntax
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for Syntax
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Syntax
[src]

impl Debug for Syntax
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Syntax
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Syntax
[src]