Home
last modified time | relevance | path

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

/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/bstr-1.11.0/src/
Dbstr.rs31 pub struct BStr { struct
35 impl BStr { argument
60 pub fn new<B: ?Sized + AsRef<[u8]>>(bytes: &B) -> &BStr { in new()
67 ) -> &mut BStr { in new_mut()
72 pub(crate) fn from_bytes(slice: &[u8]) -> &BStr { in from_bytes()
73 unsafe { &*(slice as *const [u8] as *const BStr) } in from_bytes() constant
77 pub(crate) fn from_bytes_mut(slice: &mut [u8]) -> &mut BStr { in from_bytes_mut()
83 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes()
Dimpls.rs165 fn as_ref(&self) -> &BStr { in as_ref()
179 fn as_mut(&mut self) -> &mut BStr { in as_mut()
193 fn borrow(&self) -> &BStr { in borrow()
200 fn borrow(&self) -> &BStr { in borrow()
207 fn borrow(&self) -> &BStr { in borrow()
221 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
228 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
233 impl ToOwned for BStr { implementation
306 fn from(s: BString) -> Cow<'a, BStr> { in from() argument
313 fn from(s: &'a BString) -> Cow<'a, BStr> { in from() argument
[all …]
Dbstring.rs80 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()
Dext_slice.rs145 fn as_bstr(&self) -> &BStr { in as_bstr()
168 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/bstr-1.11.0/src/
Dbstr.rs31 pub struct BStr { struct
35 impl BStr { implementation
60 pub fn new<B: ?Sized + AsRef<[u8]>>(bytes: &B) -> &BStr { in new()
67 ) -> &mut BStr { in new_mut()
72 pub(crate) fn from_bytes(slice: &[u8]) -> &BStr { in from_bytes()
73 unsafe { &*(slice as *const [u8] as *const BStr) } in from_bytes() constant
77 pub(crate) fn from_bytes_mut(slice: &mut [u8]) -> &mut BStr { in from_bytes_mut()
83 pub(crate) fn from_boxed_bytes(slice: Box<[u8]>) -> Box<BStr> { in from_boxed_bytes()
Dimpls.rs165 fn as_ref(&self) -> &BStr { in as_ref()
179 fn as_mut(&mut self) -> &mut BStr { in as_mut()
193 fn borrow(&self) -> &BStr { in borrow()
200 fn borrow(&self) -> &BStr { in borrow()
207 fn borrow(&self) -> &BStr { in borrow()
221 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
228 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
233 impl ToOwned for BStr { implementation
306 fn from(s: BString) -> Cow<'a, BStr> { in from() argument
313 fn from(s: &'a BString) -> Cow<'a, BStr> { in from() argument
[all …]
Dbstring.rs80 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()
Dext_slice.rs145 fn as_bstr(&self) -> &BStr { in as_bstr()
168 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut()
/external/rust/android-crates-io/crates/bstr/src/
Dbstr.rs34 pub struct BStr { struct
38 impl BStr { impl
63 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()
Dimpls.rs118 fn as_ref(&self) -> &BStr { in as_ref()
132 fn as_mut(&mut self) -> &mut BStr { in as_mut()
146 fn borrow(&self) -> &BStr { in borrow()
153 fn borrow(&self) -> &BStr { in borrow()
160 fn borrow(&self) -> &BStr { in borrow()
174 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
181 fn borrow_mut(&mut self) -> &mut BStr { in borrow_mut()
186 impl ToOwned for BStr { implementation
259 fn from(s: BString) -> Cow<'a, BStr> { in from() argument
395 impl fmt::Display for BStr { implementation
[all …]
Dbstring.rs80 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()
Dext_slice.rs145 fn as_bstr(&self) -> &BStr { in as_bstr()
168 fn as_bstr_mut(&mut self) -> &mut BStr { in as_bstr_mut()
/external/rust/android-crates-io/crates/winnow/src/stream/
Dimpls.rs313 impl fmt::Display for BStr { implementation
320 impl fmt::Debug for BStr { implementation
337 impl ops::Deref for BStr { implementation
346 impl ops::Index<usize> for BStr { implementation
355 impl ops::Index<ops::RangeFull> for BStr { implementation
359 fn index(&self, _: ops::RangeFull) -> &BStr { in index()
364 impl ops::Index<ops::Range<usize>> for BStr { implementation
368 fn index(&self, r: ops::Range<usize>) -> &BStr { in index()
373 impl ops::Index<ops::RangeInclusive<usize>> for BStr { implementation
377 fn index(&self, r: ops::RangeInclusive<usize>) -> &BStr { in index()
[all …]
Dmod.rs78 pub struct BStr([u8]); struct
80 impl BStr { impl
579 impl SliceLen for &BStr { implementation
949 impl<'i> Stream for &'i BStr { implementation
1491 impl<E> Recover<E> for &BStr { implementation
1714 impl StreamIsPartial for &BStr { implementation
1934 impl Offset for &BStr { implementation
1941 impl<'a> Offset<<&'a BStr as Stream>::Checkpoint> for &'a BStr { implementation
2142 impl AsBStr for &BStr { implementation
2367 impl<'a, T> Compare<T> for &'a BStr implementation
[all …]
/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/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.cons/
Dimplicit_deduction_guides.pass.cpp26 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.cons/
Dimplicit_deduction_guides.pass.cpp26 using BStr = std::basic_string<T, std::char_traits<T>, Alloc>; typedef
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Passes/
DStandardInstrumentations.cpp1203 StringRef BStr = B ? B->getBody() : "\n"; in handleFunctionCompare() local