pub trait VarintDecode: Sized {
// Required method
fn varint_decode(data: &[u8]) -> Result<(usize, Self)>;
}
Expand description
Required Methods§
Sourcefn varint_decode(data: &[u8]) -> Result<(usize, Self)>
fn varint_decode(data: &[u8]) -> Result<(usize, Self)>
Decode a type from a varint encoded series of bytes.
Signed values will be implicitly zig-zag decoded.
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.