Trait pw_varint::VarintDecode
source · 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.
Object Safety§
This trait is not object safe.