[][src]Struct prost_types::enum_descriptor_proto::EnumReservedRange

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

Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap.

Note that this is distinct from DescriptorProto.ReservedRange in that it is inclusive such that it can appropriately represent the entire int32 domain.

Fields

start: Option<i32>

Inclusive.

end: Option<i32>

Inclusive.

Implementations

impl EnumReservedRange[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 EnumReservedRange[src]

impl Debug for EnumReservedRange[src]

impl Default for EnumReservedRange[src]

impl Message for EnumReservedRange[src]

impl PartialEq<EnumReservedRange> for EnumReservedRange[src]

impl StructuralPartialEq for EnumReservedRange[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.