pub fn append_bits(&mut self, val: u32, len: u8) {
        assert!(len <= 31 && val >> len == 0, "Value out of range");
        self.0
            .extend((0..i32::from(len)).rev().map(|i| get_bit(val, i))); // Append bit by bit
    }
/// Appends the given number of low-order bits of the given value to this buffer.
///
/// Requires len &#x2264; 31 and val &lt; 2<sup>len</sup>.
Appends the given number of low-order bits of the given value to this buffer.
Requires len ≤ 31 and val < 2len.
Appends the given number of low - order bits of the given value to this buffer . Requires len ≤ 31 and val < 2len .
pub fn append_bits(&mut self, val: u32, len: u8) {
        assert!(len <= 31 && val >> len == 0, "Value out of range");
        self.0
            .extend((0..i32::from(len)).rev().map(|i| get_bit(val, i))); // Append bit by bit
    }
pub fn append_bits ( & mut self , val : u32 , len : u8 ) { assert ! ( len 31 val len 0 " " ) ; self . 0 . extend ( ( 0 .. i32 :: from ( len ) ) . rev ( ) . map ( | i | get_bit ( val , i ) ) ) ; // Append bit by bit }
Appends the given number of low-order bits of the given value to this buffer.
Appends the given number of low - order bits of the given value to this buffer .
&mut self
val
u32
len
u8