Home
last modified time | relevance | path

Searched refs:Borrow (Results 1 – 25 of 85) sorted by relevance

1234

/external/rust/cxx/syntax/
Dmap.rs1 use std::borrow::Borrow;
12 use std::borrow::Borrow;
58 K: Borrow<Q>, in contains_key()
66 K: Borrow<Q>, in get()
85 use std::borrow::Borrow;
109 K: Borrow<Q>, in contains_key()
117 K: Borrow<Q>, in get()
129 K: Borrow<Q>, in remove()
171 K: Borrow<Q> + Hash + Eq,
Dset.rs9 use std::borrow::Borrow;
38 &'a T: Borrow<Q>, in contains()
46 &'a T: Borrow<Q>, in get()
73 use std::borrow::Borrow;
95 T: Borrow<Q>, in contains()
103 T: Borrow<Q>, in get()
/external/rust/crates/plotters/src/element/
Dtext.rs1 use std::borrow::Borrow;
10 pub struct Text<'a, Coord, T: Borrow<str>> {
16 impl<'a, Coord, T: Borrow<str>> Text<'a, Coord, T> {
31 impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord> for &'a Text<'b, Coord, T> {
39 impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB> for Text<'a, Coord, T> {
55 pub struct MultiLineText<'a, Coord, T: Borrow<str>> {
62 impl<'a, Coord, T: Borrow<str>> MultiLineText<'a, Coord, T> {
155 impl<'a, T: Borrow<str>> MultiLineText<'a, BackendCoord, T> {
216 impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord>
226 impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB>
Dmod.rs158 use std::borrow::Borrow;
225 type Point: Borrow<Coord> + 'a;
/external/rust/crates/hashlink/src/
Dlru_cache.rs2 borrow::Borrow,
92 K: Borrow<Q>, in contains_key()
115 K: Borrow<Q>, in peek()
126 K: Borrow<Q>, in peek_mut()
137 K: Borrow<Q>, in get()
148 K: Borrow<Q>, in get_mut()
199 K: Borrow<Q>, in remove()
208 K: Borrow<Q>, in remove_entry()
Dlinked_hash_set.rs2 borrow::Borrow,
152 T: Borrow<Q>, in contains()
161 T: Borrow<Q>, in get()
179 T: Borrow<Q>, in get_or_insert_with()
224 T: Borrow<Q>, in remove()
233 T: Borrow<Q>, in take()
265 T: Borrow<Q>, in to_front()
280 T: Borrow<Q>, in to_back()
/external/rust/crates/ahash/src/
Dhash_map.rs1 use std::borrow::Borrow;
79 K: Borrow<Q>, in get()
104 K: Borrow<Q>, in get_key_value()
131 K: Borrow<Q>, in get_mut()
186 K: Borrow<Q>, in remove()
234 K: Eq + Hash + Borrow<Q>,
/external/rust/crates/weak-table/src/
Dweak_hash_set.rs3 use std::borrow::Borrow;
92 T::Key: Borrow<Q> in contains()
117 T::Key: Borrow<Q> in get()
131 T::Key: Borrow<Q> in remove()
Dweak_key_hash_map.rs3 use std::borrow::Borrow;
356 K::Key: Borrow<Q> in find_bucket()
391 K::Key: Borrow<Q> in get()
400 K::Key: Borrow<Q> in contains_key()
408 K::Key: Borrow<Q> in get_key()
416 K::Key: Borrow<Q> in get_both()
425 K::Key: Borrow<Q> in get_mut()
435 K::Key: Borrow<Q> in get_both_mut()
459 K::Key: Borrow<Q> in remove()
532 K::Key: Borrow<Q> in hash()
[all …]
Dweak_weak_hash_map.rs4 use std::borrow::Borrow;
317 K::Key: Borrow<Q> in find_bucket()
352 K::Key: Borrow<Q> in get()
360 K::Key: Borrow<Q> in get_key()
368 K::Key: Borrow<Q> in get_both()
376 K::Key: Borrow<Q> in contains_key()
399 K::Key: Borrow<Q> in remove()
473 K::Key: Borrow<Q> in hash()
/external/rust/crates/serde_json/src/
Dmap.rs9 use crate::lib::borrow::Borrow;
65 String: Borrow<Q>, in get()
78 String: Borrow<Q>, in contains_key()
91 String: Borrow<Q>, in get_mut()
116 String: Borrow<Q>, in remove()
132 String: Borrow<Q>, in remove_entry()
299 String: Borrow<Q>,
322 String: Borrow<Q>,
/external/crosvm/devices/src/virtio/fs/
Dmultikey.rs5 use std::borrow::Borrow;
39 K1: Borrow<Q>, in get()
55 K2: Borrow<Q2>, in get_alt()
96 K1: Borrow<Q>, in remove()
/external/rust/crates/nix/src/sys/
Daio.rs28 use std::borrow::{Borrow, BorrowMut};
104 BoxedSlice(Box<dyn Borrow<[u8]>>),
118 let borrowed : &dyn Borrow<[u8]> = bs.borrow(); in fmt()
120 borrowed as *const dyn Borrow<[u8]>) in fmt()
167 pub fn boxed_slice(&mut self) -> Option<Box<dyn Borrow<[u8]>>> { in boxed_slice()
438 pub fn from_boxed_slice(fd: RawFd, offs: off_t, buf: Box<dyn Borrow<[u8]>>, in from_boxed_slice()
443 let borrowed : &dyn Borrow<[u8]> = buf.borrow(); in from_boxed_slice()
/external/rust/crates/tinyvec/src-backup/
Darrayset.rs7 borrow::Borrow,
103 A::Item: Borrow<Q>, in contains()
111 A::Item: Borrow<Q>, in get()
126 A::Item: Borrow<Q>, in remove()
/external/rust/crates/intrusive-collections/src/
Dunsafe_ref.rs10 use core::borrow::Borrow;
93 impl<T: ?Sized> Borrow<T> for UnsafeRef<T> {
/external/rust/crates/tokio-stream/src/
Dstream_map.rs3 use std::borrow::Borrow;
442 K: Borrow<Q>, in remove()
471 K: Borrow<Q>, in contains_key()
/external/rust/crates/log/src/kv/
Dkey.rs3 use std::borrow::Borrow;
100 impl<'k> Borrow<str> for Key<'k> {
/external/rust/crates/lru-cache/src/
Dlib.rs42 use std::borrow::Borrow;
97 where K: Borrow<Q>, in contains_key()
145 where K: Borrow<Q>, in get_mut()
168 where K: Borrow<Q>, in remove()
/external/rust/crates/plotters/src/chart/
Ddual_coord.rs2 use std::borrow::{Borrow, BorrowMut};
202 R: Borrow<E>, in draw_secondary_series()
211 Borrow<ChartContext<'a, DB, CT1>> for DualCoordChartContext<'a, DB, CT1, CT2>
/external/rust/crates/form_urlencoded/src/
Dlib.rs20 use std::borrow::{Borrow, Cow};
281 I::Item: Borrow<(K, V)>, in extend_pairs()
311 I::Item: Borrow<K>, in extend_keys_only()
/external/rust/crates/linked-hash-map/src/
Dlib.rs44 use std::borrow::Borrow;
96 impl<K, Q: ?Sized> Borrow<Qey<Q>> for KeyRef<K> where K: Borrow<Q> { impl
348 pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool where K: Borrow<Q>, Q: Eq + Hash { in contains_key()
368 pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where K: Borrow<Q>, Q: Eq + Hash { in get()
386 pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> where K: Borrow<Q>, Q: Eq + Hash { in get_mut()
409 …pub fn get_refresh<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> where K: Borrow<Q>, Q: Eq + Hash… in get_refresh()
438 pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where K: Borrow<Q>, Q: Eq + Hash { in remove()
702 where K: Hash + Eq + Borrow<Q>, S: BuildHasher, Q: Eq + Hash
712 where K: Hash + Eq + Borrow<Q>, S: BuildHasher, Q: Eq + Hash
/external/rust/cxx/tests/ffi/
Dtests.cc214 Borrow::Borrow(const std::string &s) : s(s) {} in Borrow() function in tests::Borrow
216 void Borrow::const_member() const {} in const_member()
218 void Borrow::nonconst_member() {} in nonconst_member()
220 std::unique_ptr<Borrow> c_return_borrow(const std::string &s) { in c_return_borrow()
221 return std::unique_ptr<Borrow>(new Borrow(s)); in c_return_borrow()
Dlib.rs224 type Borrow<'a>; typedef
226 fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>>; in c_return_borrow()
229 fn c_return_borrow(s: &CxxString) -> UniquePtr<Borrow>; in c_return_borrow() argument
231 fn const_member(self: &Borrow); in const_member() argument
232 fn nonconst_member(self: Pin<&mut Borrow>); in nonconst_member() argument
Dtests.h80 struct Borrow { struct
81 Borrow(const std::string &s);
120 std::unique_ptr<Borrow> c_return_borrow(const std::string &s);
/external/rust/crates/tinyvec/patches/
Dstd.diff14 borrow::{Borrow, BorrowMut},

1234