Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dstr.rs22 pub struct BStr([u8]); struct
24 impl BStr { impl
41 unsafe { &*(core::ptr::from_ref(bytes) as *const BStr) } in from_bytes() constant
55 pub fn strip_prefix(&self, pattern: impl AsRef<Self>) -> Option<&BStr> { in strip_prefix()
62 impl fmt::Display for BStr { implementation
92 impl fmt::Debug for BStr { implementation
128 impl Deref for BStr { implementation
137 impl PartialEq for BStr { implementation
143 impl<Idx> Index<Idx> for BStr implementation
155 fn as_ref(&self) -> &BStr { in as_ref()
[all …]
/linux/rust/kernel/str/
H A Dparse_int.rs22 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self>; in from_str_radix()
31 fn strip_radix(src: &BStr) -> (u32, &BStr) { in strip_radix()