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>
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.