Trait parquet2::encoding::bitpacked::Unpackable
source · pub trait Unpackable: Copy + Sized + Default {
type Packed: Packed;
type Unpacked: Unpacked<Self>;
// Required methods
fn unpack(packed: &[u8], num_bits: usize, unpacked: &mut Self::Unpacked);
fn pack(unpacked: &Self::Unpacked, num_bits: usize, packed: &mut [u8]);
}
Expand description
A type representing a type that can be bitpacked and unpacked by this crate.
Required Associated Types§
Required Methods§
fn unpack(packed: &[u8], num_bits: usize, unpacked: &mut Self::Unpacked)
fn pack(unpacked: &Self::Unpacked, num_bits: usize, packed: &mut [u8])
Object Safety§
This trait is not object safe.