pub trait VarIntWritable: Copy + PartialOrd {
// Required methods
fn is_zero(self) -> bool;
fn low_7_bits(self) -> u8;
fn shr_7(&mut self);
}Expand description
Trait for writing VarInts Allows generic VarInt writing for unsigned integer types.
Required Methods§
Sourcefn low_7_bits(self) -> u8
fn low_7_bits(self) -> u8
Returns the lower 7 bits as a byte.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.