pub fn new(data: &[u8], bit_count: u64) -> Self {
        let num_bytes = (bit_count + 7) as usize / 8;
        let mut l = Self {
            data: data[0..num_bytes].to_vec(),
            bit_count,
        };
        l.clear_trailing_bits();
        l
    }
/// Create a new letter with given data and number of bits.
///
/// Trailing bits in data (beyond `bit_count`) are ignored.
Create a new letter with given data and number of bits.
Trailing bits in data (beyond `bit_count`) are ignored.
Create a new letter with given data and number of bits . Trailing bits in data ( beyond ` bit_count ` ) are ignored .
pub fn new(data: &[u8], bit_count: u64) -> Self {
        let num_bytes = (bit_count + 7) as usize / 8;
        let mut l = Self {
            data: data[0..num_bytes].to_vec(),
            bit_count,
        };
        l.clear_trailing_bits();
        l
    }
pub fn new ( data : & [ u8 ] , bit_count : u64 ) -> Self { let num_bytes = ( bit_count + 7 ) as usize / 8 ; let mut l = Self { data : data [ 0 .. num_bytes ] . to_vec ( ) , bit_count , } ; l . clear_trailing_bits ( ) ; l }
Create a new letter with given data and number of bits.
Create a new letter with given data and number of bits .
data
&[u8]
bit_count
u64
data
&[u8]
bit_count
u64