pub enum Greater {
Gt(i64),
Gte(u64),
}
Variants§
Gt(i64)
Requires the input value is greater than the value provided.
Gte(u64)
Requires the input value is greater than or equal to the value provided.
Implementations§
Source§impl Greater
impl Greater
Sourcepub fn merge(
field: &mut Option<Greater>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Greater>, 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§
impl Copy for Greater
impl StructuralPartialEq for Greater
Auto Trait Implementations§
impl Freeze for Greater
impl RefUnwindSafe for Greater
impl Send for Greater
impl Sync for Greater
impl Unpin for Greater
impl UnwindSafe for Greater
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