Searched refs:as_bytes (Results 1 – 9 of 9) sorted by relevance
173 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());304 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method330 core::str::from_utf8(self.as_bytes()) in to_str()353 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()445 for &c in self.as_bytes() { in fmt()477 for &c in self.as_bytes() { in fmt()492 BStr::from_bytes(self.as_bytes()) in as_ref()512 let _ = &self.as_bytes()[index.start..]; in index()567 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {791 s.as_bytes().as_ptr(), in write_str()
52 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
285 self.push_internal(s.as_bytes()) in push()
236 let name_u8 = ::core::stringify!($name).as_bytes();
4 let src = s.as_bytes();
71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
40 let bytes = s.as_bytes(); in write_str()
71 string = Literal::byte_string(string.as_bytes()), in emit_base()
925 &Segment::Binary(url_cstr.as_bytes()), in drm_panic_qr_generate()