[][src]Struct prost_types::descriptor_proto::ReservedRange

pub struct ReservedRange {
    pub start: Option<i32>,
    pub end: Option<i32>,
}

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

Fields

start: Option<i32>

Inclusive.

end: Option<i32>

Exclusive.

Methods

impl ReservedRange[src]

pub fn start(&self) -> i32[src]

Returns the value of start, or the default value if start is unset.

pub fn end(&self) -> i32[src]

Returns the value of end, or the default value if end is unset.

Trait Implementations

impl Clone for ReservedRange[src]

impl Debug for ReservedRange[src]

impl Default for ReservedRange[src]

impl Message for ReservedRange[src]

impl PartialEq<ReservedRange> for ReservedRange[src]

impl StructuralPartialEq for ReservedRange[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.