Trait integer_encoding::VarIntWriter
source · pub trait VarIntWriter {
// Required method
fn write_varint<VI: VarInt>(&mut self, n: VI) -> Result<usize>;
}
Expand description
A trait for writing integers in VarInt encoding to any Write
type. This packs encoding and
writing into one step.
Required Methods§
fn write_varint<VI: VarInt>(&mut self, n: VI) -> Result<usize>
Object Safety§
This trait is not object safe.