Trait pw_varint::VarintEncode
source · pub trait VarintEncode: Sized {
// Required method
fn varint_encode(self, data: &mut [u8]) -> Result<usize>;
}
Expand description
Required Methods§
sourcefn varint_encode(self, data: &mut [u8]) -> Result<usize>
fn varint_encode(self, data: &mut [u8]) -> Result<usize>
Encode a type into a varint encoded series of bytes.
Signed values will be implicitly zig-zag encoded.
Object Safety§
This trait is not object safe.