Struct protobuf_codec::field::num::FieldNum [] [src]

pub struct FieldNum(_);

Field number.

Methods

impl FieldNum
[src]

[src]

Makes a new FieldNum instance.

Errors

The language guide says about the valid values of a field number as follows:

The smallest field number you can specify is 1, and the largest is 2^29 - 1, or 536,870,911. You also cannot use the numbers 19000 through 19999, as they are reserved for the Protocol Buffers implementation

If n violates this restriction, an ErrorKind::InvalidInput error will be returned.

[src]

Makes a new FieldNum instance without checking the value.

[src]

Returns the value of the field number.

Trait Implementations

impl Debug for FieldNum
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for FieldNum
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FieldNum
[src]

impl PartialEq for FieldNum
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for FieldNum
[src]

impl Hash for FieldNum
[src]

[src]

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

1.3.0
[src]

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

impl PartialOrd for FieldNum
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Ord for FieldNum
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl From<F1> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F2> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F3> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F4> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F5> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F6> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F7> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F8> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F9> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F10> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F11> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F12> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F13> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F14> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F15> for FieldNum
[src]

[src]

Performs the conversion.

impl From<F16> for FieldNum
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for FieldNum

impl Sync for FieldNum