Lines Matching refs:as_bytes
117 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
141 str::from_utf8(self.as_bytes()) in to_str()
153 String::from_utf8_lossy(self.as_bytes()) in to_string_lossy()
201 self.push_bytes(s.as_bytes()); in push_str()
212 lossy::display(self.as_bytes(), f) in fmt()
218 lossy::debug(self.as_bytes(), f) in fmt()
224 self.as_bytes() == other.as_bytes() in eq()
230 self.as_bytes() == other.as_bytes() in eq()
236 self.as_bytes() == other.as_bytes() in eq()
244 self.as_bytes().partial_cmp(other.as_bytes()) in partial_cmp()
250 self.as_bytes().cmp(other.as_bytes()) in cmp()
256 self.as_bytes().hash(state); in hash()