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