#[non_exhaustive]pub struct EnumReservedRange {
pub start: i32,
pub end: i32,
/* private fields */
}Expand description
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: i32§end: i32Implementations§
Trait Implementations§
Source§impl Clone for EnumReservedRange
impl Clone for EnumReservedRange
Source§fn clone(&self) -> EnumReservedRange
fn clone(&self) -> EnumReservedRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumReservedRange
impl Debug for EnumReservedRange
Source§impl Default for EnumReservedRange
impl Default for EnumReservedRange
Source§fn default() -> EnumReservedRange
fn default() -> EnumReservedRange
Returns the “default value” for a type. Read more
Source§impl Message for EnumReservedRange
impl Message for EnumReservedRange
Source§impl PartialEq for EnumReservedRange
impl PartialEq for EnumReservedRange
impl StructuralPartialEq for EnumReservedRange
Auto Trait Implementations§
impl Freeze for EnumReservedRange
impl RefUnwindSafe for EnumReservedRange
impl Send for EnumReservedRange
impl Sync for EnumReservedRange
impl Unpin for EnumReservedRange
impl UnsafeUnpin for EnumReservedRange
impl UnwindSafe for EnumReservedRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more