pub fn push(&mut self, index: usize) -> &mut Self {
        if let Ok(i) = u8::try_from(index) {
            self.as_u8.push(i);
        } else if let Ok(i) = u16::try_from(index) {
            self.as_u16.push(i);
        } else if let Ok(i) = u32::try_from(index) {
            self.as_u32.push(i);
        } else if let Ok(i) = u64::try_from(index) {
            self.as_u64.push(i);
        } else {
            panic!("Index {} is too big", index);
        }
        self
    }
/// Pushes a new index onto the builder.
Pushes a new index onto the builder.
Pushes a new index onto the builder .
pub fn push(&mut self, index: usize) -> &mut Self {
        if let Ok(i) = u8::try_from(index) {
            self.as_u8.push(i);
        } else if let Ok(i) = u16::try_from(index) {
            self.as_u16.push(i);
        } else if let Ok(i) = u32::try_from(index) {
            self.as_u32.push(i);
        } else if let Ok(i) = u64::try_from(index) {
            self.as_u64.push(i);
        } else {
            panic!("Index {} is too big", index);
        }
        self
    }
pub fn push ( & mut self , index : usize ) -> & mut Self { if let Ok ( i ) = u8 :: try_from ( index ) { self . as_u8 . push ( i ) ; } else if let Ok ( i ) = u16 :: try_from ( index ) { self . as_u16 . push ( i ) ; } else if let Ok ( i ) = u32 :: try_from ( index ) { self . as_u32 . push ( i ) ; } else if let Ok ( i ) = u64 :: try_from ( index ) { self . as_u64 . push ( i ) ; } else { panic ! ( " " index ) ; } self }
Pushes a new index onto the builder.
Pushes a new index onto the builder .
&mut self
index
usize
&mut self
index
usize