Home
last modified time | relevance | path

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

/external/rust/crates/bstr/src/
Dimpls.rs76 bstr::BStr, bstring::BString, ext_slice::ByteSlice, ext_vec::ByteVec,
116 impl AsRef<BStr> for BString {
118 fn as_ref(&self) -> &BStr { in as_ref() argument
130 impl AsMut<BStr> for BString {
132 fn as_mut(&mut self) -> &mut BStr { in as_mut() argument
137 impl Borrow<BStr> for BString {
139 fn borrow(&self) -> &BStr { in borrow() argument
144 impl ToOwned for BStr { implementation
194 impl<'a> From<&'a BStr> for BString {
196 fn from(s: &'a BStr) -> BString { in from()
[all …]
Dbstr.rs34 pub struct BStr { struct
38 impl BStr { argument
63 pub fn new<'a, B: ?Sized + AsRef<[u8]>>(bytes: &'a B) -> &'a BStr { in new() argument
64 BStr::from_bytes(bytes.as_ref()) in new()
70 ) -> &mut BStr { in new_mut() argument
71 BStr::from_bytes_mut(bytes.as_mut()) in new_mut()
75 pub(crate) fn from_bytes(slice: &[u8]) -> &BStr { in from_bytes() argument
80 pub(crate) fn from_bytes_mut(slice: &mut [u8]) -> &mut BStr { in from_bytes_mut() argument
86 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes() argument
92 pub(crate) fn into_boxed_bytes(slice: Box<BStr>) -> Box<[u8]> { in into_boxed_bytes()
Dbstring.rs3 use crate::bstr::BStr;
80 pub(crate) fn as_bstr(&self) -> &BStr { in as_bstr() argument
81 BStr::new(&self.bytes) in as_bstr()
85 pub(crate) fn as_mut_bstr(&mut self) -> &mut BStr { in as_mut_bstr() argument
86 BStr::new_mut(&mut self.bytes) in as_mut_bstr()
Dlib.rs414 pub use crate::bstr::BStr;
455 bstr::BStr,
468 assert_send::<&BStr>(); in oibits()
469 assert_sync::<&BStr>(); in oibits()
470 assert_unwind_safe::<&BStr>(); in oibits()
Dext_slice.rs23 bstr::BStr,
144 fn as_bstr(&self) -> &BStr { in as_bstr() argument
145 BStr::new(self.as_bytes()) in as_bstr()
167 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut() argument
168 BStr::new_mut(self.as_bytes_mut()) in as_bstr_mut()
Dutf8.rs6 use crate::{ascii, bstr::BStr, ext_slice::ByteSlice};
256 invalid: &'a BStr,
/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
73 ASSERT_SAME_TYPE(decltype(s), BStr<char,test_allocator<char>>); in main()
77 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in main()
260 ASSERT_SAME_TYPE(decltype(s), BStr<char, test_allocator<char>>); in main()
264 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.cons/
Dimplicit_deduction_guides.pass.cpp26 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef
73 ASSERT_SAME_TYPE(decltype(s), BStr<char,test_allocator<char>>); in test()
78 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in test()
300 ASSERT_SAME_TYPE(decltype(s), BStr<char, test_allocator<char>>); in test()
305 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in test()
/external/rust/crates/bstr/
DREADME.md149 * `serde` - Enables implementations of serde traits for `BStr`, and also
164 public API (e.g., `BStr` and `BString`), we will commit to being very