Home
last modified time | relevance | path

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

/linux-6.3-rc2/rust/kernel/
A Dstr.rs35 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()
[all …]
/linux-6.3-rc2/rust/macros/
A Dmodule.rs53 string = Literal::byte_string(string.as_bytes()), in emit_base()
/linux-6.3-rc2/rust/alloc/
A Dboxed.rs1276 let buf: Box<[u8]> = self.as_bytes().into(); in clone()
1479 unsafe { from_boxed_utf8_unchecked(Box::from(s.as_bytes())) } in from()
/linux-6.3-rc2/rust/alloc/vec/
A Dmod.rs3182 From::from(s.as_bytes()) in from()

Completed in 16 milliseconds