Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dstr.rs14 pub struct BStr([u8]); struct
16 impl BStr { implementation
33 unsafe { &*(bytes as *const [u8] as *const BStr) } in from_bytes() constant
37 impl fmt::Display for BStr { implementation
66 impl fmt::Debug for BStr { implementation
101 impl Deref for BStr { implementation
126 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
438 impl AsRef<BStr> for CStr {
440 fn as_ref(&self) -> &BStr { in as_ref() argument
441 BStr::from_bytes(self.as_bytes()) in as_ref()
[all …]