Skip to main content

Varint

Trait Varint 

Source
pub trait Varint: Bits + Sealed { }
Expand description

The integer widths readable/writable as LEB128 — u8, u16, u32, u64, u128. Sealed: LEB128 is byte-granular, so the primitive widths are the whole set (a uN field wants the next wider primitive).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Varint for u8

Source§

impl Varint for u16

Source§

impl Varint for u32

Source§

impl Varint for u64

Source§

impl Varint for u128

Implementors§