/// Creates a new `BitArray` based on the given raw parts.
Creates a new `BitArray` based on the given raw parts.
Creates a new ` BitArray ` based on the given raw parts .
pub fn from_raw(data: Vec<u64>, bits_per_value: u8, capacity: usize) -> Self {
        assert!(
            bits_per_value <= 64,
            "Bits per value cannot be more than 64"
        );
        assert!(bits_per_value > 0, "Bits per value must be positive");
        let value_mask = (1 << (bits_per_value as u64)) - 1;
        Self {
            data,
            capacity,
            bits_per_value,
            value_mask,
        }
    }
pub fn from_raw ( data : Vec < u64 > , bits_per_value : u8 , capacity : usize ) -> Self { assert ! ( bits_per_value 64 " " ) ; assert ! ( bits_per_value 0 " " ) ; let value_mask = ( 1 << ( bits_per_value as u64 ) ) - 1 ; Self { data , capacity , bits_per_value , value_mask , } }
Creates a new `BitArray` based on the given raw parts.
Creates a new ` BitArray ` based on the given raw parts .
data
Vec<u64>
bits_per_value
u8
capacity
usize