polars_parquet_format::thrift::varint

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

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.

Implementors§

Source§

impl<Inner: Write> VarIntWriter for Inner