Home
last modified time | relevance | path

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

/Linux-v6.6/rust/kernel/
Dstr.rs36 const C: &'static $crate::str::BStr = S.as_bytes();
154 pub fn as_bytes(&self) -> &[u8] { in as_bytes() method
179 core::str::from_utf8(self.as_bytes()) in to_str()
201 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
228 for &c in self.as_bytes() { in fmt()
259 for &c in self.as_bytes() { in fmt()
274 self.as_bytes() in as_ref()
283 self.as_bytes() in deref()
294 let _ = &self.as_bytes()[index.start..]; in index()
330 &self.as_bytes()[index] in index()
[all …]
/Linux-v6.6/scripts/
Drustdoc_test_builder.rs71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
/Linux-v6.6/rust/macros/
Dmodule.rs71 string = Literal::byte_string(string.as_bytes()), in emit_base()
/Linux-v6.6/rust/alloc/
Dboxed.rs1312 let buf: Box<[u8]> = self.as_bytes().into(); in clone()
1545 unsafe { from_boxed_utf8_unchecked(Box::from(s.as_bytes())) } in from()
/Linux-v6.6/rust/alloc/vec/
Dmod.rs3513 From::from(s.as_bytes()) in from()