Lines Matching refs:as_bytes
35 const C: &'static $crate::str::BStr = S.as_bytes();
153 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
178 core::str::from_utf8(self.as_bytes()) in to_str()
200 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
220 for &c in self.as_bytes() { in fmt()
250 for &c in self.as_bytes() { in fmt()
265 self.as_bytes() in as_ref()
274 self.as_bytes() in deref()
285 let _ = &self.as_bytes()[index.start..]; in index()
321 &self.as_bytes()[index] in index()
340 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
463 s.as_bytes().as_ptr(), in write_str()