Searched refs:BStr (Results 1 – 3 of 3) sorted by relevance
22 pub struct BStr([u8]); struct24 impl BStr { implementation41 unsafe { &*(core::ptr::from_ref(bytes) as *const BStr) } in from_bytes() constant55 pub fn strip_prefix(&self, pattern: impl AsRef<Self>) -> Option<&BStr> { in strip_prefix() argument62 impl fmt::Display for BStr { implementation92 impl fmt::Debug for BStr { implementation128 impl Deref for BStr { implementation137 impl PartialEq for BStr { implementation143 impl<Idx> Index<Idx> for BStr implementation150 BStr::from_bytes(&self.0[index]) in index()[all …]
8 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> {
9 use crate::str::BStr;17 use crate::str::BStr;22 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self>; in from_str_radix() argument31 fn strip_radix(src: &BStr) -> (u32, &BStr) { in strip_radix() argument81 fn from_str(src: &BStr) -> Result<Self> { in from_str()109 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self> {