pub enum AllowedValues {
Range(DoubleRange),
}Variants§
Range(DoubleRange)
Implementations§
Source§impl AllowedValues
impl AllowedValues
Sourcepub fn merge(
field: &mut Option<AllowedValues>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<AllowedValues>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for AllowedValues
impl Clone for AllowedValues
Source§fn clone(&self) -> AllowedValues
fn clone(&self) -> AllowedValues
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 AllowedValues
impl Debug for AllowedValues
Source§impl PartialEq for AllowedValues
impl PartialEq for AllowedValues
Source§fn eq(&self, other: &AllowedValues) -> bool
fn eq(&self, other: &AllowedValues) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AllowedValues
impl StructuralPartialEq for AllowedValues
Auto Trait Implementations§
impl Freeze for AllowedValues
impl RefUnwindSafe for AllowedValues
impl Send for AllowedValues
impl Sync for AllowedValues
impl Unpin for AllowedValues
impl UnsafeUnpin for AllowedValues
impl UnwindSafe for AllowedValues
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