pub trait BitPack<A, B> {
type PackedSize: ArraySize;
// Required methods
fn pack(&self) -> Array<u8, Self::PackedSize>;
fn unpack(enc: &Array<u8, Self::PackedSize>) -> Self;
}Expand description
BitPack represents range-encoding logic
Required Associated Types§
type PackedSize: ArraySize
Required Methods§
fn pack(&self) -> Array<u8, Self::PackedSize>
fn unpack(enc: &Array<u8, Self::PackedSize>) -> Self
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.