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§

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Inner: Write> VarIntWriter for Inner