pub fn extend_byte_string(&mut self, other: &Self) {
        if self.ascii_len == self.len() {
            self.ascii_len += other.ascii_len;
        }
        self.bytes.extend_from_slice(&other.bytes);
        self.is_utf8 = match (self.is_utf8, other.is_utf8) {
            (true, true) => true,
            (true, false) | (false, true) => false,
            (false, false) => from_utf8(&self.bytes[self.ascii_len..]).is_ok(),
        };
        self.debug_validate();
    }
/// Extends another byte string instance to the end.
Extends another byte string instance to the end.
Extends another byte string instance to the end .
pub fn extend_byte_string(&mut self, other: &Self) {
        if self.ascii_len == self.len() {
            self.ascii_len += other.ascii_len;
        }
        self.bytes.extend_from_slice(&other.bytes);
        self.is_utf8 = match (self.is_utf8, other.is_utf8) {
            (true, true) => true,
            (true, false) | (false, true) => false,
            (false, false) => from_utf8(&self.bytes[self.ascii_len..]).is_ok(),
        };
        self.debug_validate();
    }
pub fn extend_byte_string ( & mut self , other : & Self ) { if self . ascii_len == self . len ( ) { self . ascii_len += other . ascii_len ; } self . bytes . extend_from_slice ( & other . bytes ) ; self . is_utf8 = match ( self . is_utf8 , other . is_utf8 ) { ( true , true ) => true , ( true , false ) | ( false , true ) => false , ( false , false ) => from_utf8 ( & self . bytes [ self . ascii_len .. ] ) . is_ok ( ) , } ; self . debug_validate ( ) ; }
Extends another byte string instance to the end.
Extends another byte string instance to the end .
&mut self
other
&Self
&mut self
other
&Self