Searched defs:BStr (Results 1 – 6 of 6) sorted by relevance
34 pub struct BStr { struct38 impl BStr { argument63 pub fn new<'a, B: ?Sized + AsRef<[u8]>>(bytes: &'a B) -> &'a BStr { in new()70 ) -> &mut BStr { in new_mut()75 pub(crate) fn from_bytes(slice: &[u8]) -> &BStr { in from_bytes()80 pub(crate) fn from_bytes_mut(slice: &mut [u8]) -> &mut BStr { in from_bytes_mut()86 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes()
118 fn as_ref(&self) -> &BStr { in as_ref()132 fn as_mut(&mut self) -> &mut BStr { in as_mut()139 fn borrow(&self) -> &BStr { in borrow()144 impl ToOwned for BStr { implementation203 fn from(s: BString) -> Cow<'a, BStr> { in from() argument334 impl fmt::Display for BStr { implementation340 bstr: &BStr, in fmt()396 impl fmt::Debug for BStr { implementation431 impl ops::Deref for BStr { implementation440 impl ops::DerefMut for BStr { implementation[all …]
80 pub(crate) fn as_bstr(&self) -> &BStr { in as_bstr()85 pub(crate) fn as_mut_bstr(&mut self) -> &mut BStr { in as_mut_bstr()
144 fn as_bstr(&self) -> &BStr { in as_bstr()167 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut()
28 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef
26 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef