Struct ordered_varint::Unsigned
source · pub struct Unsigned(_);
Expand description
An unsigned integer value
This type encodes values in the range 0..2.pow(124)
by using the first 4
bits to denote an unsigned byte length
. This length ranges from 0..=15
.
The remaining 4 bits of the first byte and any additional bytes are then
used to store the integer in big-endian encoding.
Trait Implementations§
source§impl Ord for Unsigned
impl Ord for Unsigned
source§impl PartialOrd<Unsigned> for Unsigned
impl PartialOrd<Unsigned> for Unsigned
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more