#[repr(transparent)]pub struct ByteStr(pub [u8]);Tuple Fields§
§0: [u8]Implementations§
Trait Implementations§
Source§impl Borrow<ByteStr> for ByteString
impl Borrow<ByteStr> for ByteString
impl Eq for ByteStr
Source§impl PartialEq<ByteString> for &ByteStr
impl PartialEq<ByteString> for &ByteStr
Source§impl PartialOrd for ByteStr
impl PartialOrd for ByteStr
Source§impl RawString for &ByteStr
impl RawString for &ByteStr
fn raw_string_bytes(&self) -> &[u8] ⓘ
Source§fn eq_ignore_trailing_spaces<R>(&self, other: &R) -> boolwhere
R: RawString,
fn eq_ignore_trailing_spaces<R>(&self, other: &R) -> boolwhere
R: RawString,
Compares this string and
other for equality, ignoring trailing ASCII
spaces in either string for the purpose of comparison. (This is
acceptable because we assume that the encoding is ASCII-compatible.) Read moreSource§fn is_resizable(&self, new_len: usize) -> bool
fn is_resizable(&self, new_len: usize) -> bool
Returns true if this raw string can be resized to
len bytes without
dropping non-space characters.