Skip to main content

required_width

Function required_width 

Source
pub fn required_width<T: Packable>(values: &[T]) -> usize
Expand description

The smallest bit width that can hold every value in the slice. Zero for an empty slice or a slice of zeros, which pack_transposed handles as the degenerate case that stores nothing.