Home
last modified time | relevance | path

Searched refs:as_bytes (Results 1 – 5 of 5) sorted by relevance

/linux/rust/kernel/
A Dstr.rs126 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
257 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
282 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()
/linux/scripts/
A Drustdoc_test_builder.rs71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
/linux/rust/kernel/block/mq/
A Draw_writer.rs40 let bytes = s.as_bytes(); in write_str()
/linux/rust/macros/
A Dmodule.rs71 string = Literal::byte_string(string.as_bytes()), in emit_base()
/linux/drivers/gpu/drm/
A Ddrm_panic_qr.rs964 &Segment::Binary(url_cstr.as_bytes()), in drm_panic_qr_generate()

Completed in 13 milliseconds