Home
last modified time | relevance | path

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

/external/rust/crates/bstr/src/
Dbstr.rs31 pub struct BStr { struct
35 impl BStr { argument
37 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()
Dimpls.rs113 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 { implementation
198 fn from(s: BString) -> Cow<'a, BStr> { in from() argument
314 impl fmt::Display for BStr { implementation
320 bstr: &BStr, in fmt()
373 impl fmt::Debug for BStr { implementation
408 impl ops::Deref for BStr { implementation
417 impl ops::DerefMut for BStr { implementation
[all …]
Dbstring.rs51 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()
Dext_slice.rs124 fn as_bstr(&self) -> &BStr { in as_bstr()
147 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut()
/external/libcxx/test/std/strings/basic.string/string.cons/
Dimplicit_deduction_guides.pass.cpp28 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef
/external/llvm-project/libcxx/test/std/strings/basic.string/string.cons/
Dimplicit_deduction_guides.pass.cpp27 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef