Searched refs:as_bytes (Results 1 – 5 of 5) sorted by relevance
126 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());257 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method282 core::str::from_utf8(self.as_bytes()) in to_str()304 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()395 for &c in self.as_bytes() { in fmt()426 for &c in self.as_bytes() { in fmt()441 BStr::from_bytes(self.as_bytes()) in as_ref()461 let _ = &self.as_bytes()[index.start..]; in index()516 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {717 s.as_bytes().as_ptr(), in write_str()
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()
964 &Segment::Binary(url_cstr.as_bytes()), in drm_panic_qr_generate()
Completed in 13 milliseconds