Searched defs:BStr (Results 1 – 6 of 6) sorted by relevance
31 pub struct BStr { struct35 impl BStr { impl37 pub(crate) fn new<B: ?Sized + AsRef<[u8]>>(bytes: &B) -> &BStr { in new()44 ) -> &mut BStr { in new_mut()49 pub(crate) fn from_bytes(slice: &[u8]) -> &BStr { in from_bytes()54 pub(crate) fn from_bytes_mut(slice: &mut [u8]) -> &mut BStr { in from_bytes_mut()60 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes()
113 fn as_ref(&self) -> &BStr { in as_ref()127 fn as_mut(&mut self) -> &mut BStr { in as_mut()134 fn borrow(&self) -> &BStr { in borrow()139 impl ToOwned for BStr { implementation198 fn from(s: BString) -> Cow<'a, BStr> { in from() argument314 impl fmt::Display for BStr { implementation320 bstr: &BStr, in fmt()373 impl fmt::Debug for BStr { implementation408 impl ops::Deref for BStr { implementation417 impl ops::DerefMut for BStr { implementation[all …]
51 pub(crate) fn as_bstr(&self) -> &BStr { in as_bstr()56 pub(crate) fn as_mut_bstr(&mut self) -> &mut BStr { in as_mut_bstr()
124 fn as_bstr(&self) -> &BStr { in as_bstr()147 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
27 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef