Enum prost_types::Syntax[][src]

pub enum Syntax {
    Proto2,
    Proto3,
}

The syntax in which a protocol buffer element is defined.

Variants

Syntax proto2.

Syntax proto3.

Methods

impl Syntax
[src]

Returns true if value is a variant of Syntax.

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

Trait Implementations

impl Default for Syntax
[src]

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

impl From<Syntax> for i32
[src]

Performs the conversion.

impl Clone for Syntax
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Syntax
[src]

impl Debug for Syntax
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Syntax
[src]

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

This method tests for !=.

impl Eq for Syntax
[src]

impl Hash for Syntax
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for Syntax
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Syntax
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl Send for Syntax

impl Sync for Syntax