Function pack_indices
Source pub fn pack_indices(indices: &[u32], bits: u8) -> Box<[u64]>
Expand description
Packs indices into a compact bit array using power-of-2 bit widths.
§Arguments
indices - The indices to pack (values must fit in bits bits)
bits - Bits per entry (must be 1, 2, 4, 8, or 16)
§Panics
Panics if bits is not a power of 2 or is greater than 16.