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§

source

fn write_varint<VI: VarInt>(&mut self, n: VI) -> Result<usize>

Implementors§

source§

impl<Inner: Write> VarIntWriter for Inner