pub fn encoding(&self) -> Encoding {
        if self.bytes.len() == self.ascii_len {
            Encoding::Ascii
        } else if self.is_utf8 {
            Encoding::Utf8
        } else {
            Encoding::Binary
        }
    }
/// Returns the narrowest encoding of the entire byte string.
Returns the narrowest encoding of the entire byte string.
Returns the narrowest encoding of the entire byte string .
pub fn encoding(&self) -> Encoding {
        if self.bytes.len() == self.ascii_len {
            Encoding::Ascii
        } else if self.is_utf8 {
            Encoding::Utf8
        } else {
            Encoding::Binary
        }
    }
pub fn encoding ( & self ) -> Encoding { if self . bytes . len ( ) == self . ascii_len { Encoding :: Ascii } else if self . is_utf8 { Encoding :: Utf8 } else { Encoding :: Binary } }
Returns the narrowest encoding of the entire byte string.
Returns the narrowest encoding of the entire byte string .
&self
&self