/// Appends `src` to the brand string if there is enough room to append it.
Appends `src` to the brand string if there is enough room to append it.
Appends ` src ` to the brand string if there is enough room to append it .
pub fn push_bytes(&mut self, src: &[u8]) {
        if !self.check_push(src) {
            // No room to push all of src.
            error!("Appending to the brand string failed.");
            return;
        }
        let start = self.len;
        let count = src.len();
        self.len += count;
        self.as_bytes_mut()[start..(start + count)].copy_from_slice(src);
    }
pub fn push_bytes ( & mut self , src : & [ u8 ] ) { if ! self . check_push ( src ) { // No room to push all of src. error ! ( " " ) ; return ; } let start = self . len ; let count = src . len ( ) ; self . len += count ; self . as_bytes_mut ( ) [ start .. ( start + count ) ] . copy_from_slice ( src ) ; }
Appends `src` to the brand string if there is enough room to append it.
Appends ` src ` to the brand string if there is enough room to append it .
&mut self
src
&[u8]