Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dstr.rs22 pub struct BStr([u8]); struct
24 impl BStr { implementation
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() argument
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
150 BStr::from_bytes(&self.0[index]) in index()
[all …]
H A Dmodule_param.rs8 use crate::str::BStr;
32 fn try_from_param_arg(arg: &BStr) -> Result<Self>; in try_from_param_arg()
73 let arg: &BStr = arg.as_ref(); in set_param()
91 fn try_from_param_arg(arg: &BStr) -> Result<Self> {
/linux/rust/kernel/str/
H A Dparse_int.rs9 use crate::str::BStr;
17 use crate::str::BStr;
22 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self>; in from_str_radix() argument
31 fn strip_radix(src: &BStr) -> (u32, &BStr) { in strip_radix() argument
81 fn from_str(src: &BStr) -> Result<Self> { in from_str()
109 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self> {