Home
last modified time | relevance | path

Searched refs:contains_key (Results 1 – 25 of 63) sorted by relevance

123

/external/rust/cxx/syntax/
Dtypes.rs76 || structs.contains_key(ident) in collect()
77 || enums.contains_key(ident)) in collect()
95 || structs.contains_key(ident) in collect()
96 || enums.contains_key(ident)) in collect()
110 || !structs.contains_key(ident) && !enums.contains_key(ident)) in collect()
174 Atom::from(ident.rust).is_none() && !aliases.contains_key(ident.rust) in collect()
177 if implicit_impl && !impls.contains_key(&impl_key) { in collect()
Dcheck.rs69 && !cx.types.structs.contains_key(ident) in check_type_ident()
70 && !cx.types.enums.contains_key(ident) in check_type_ident()
82 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
83 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
84 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
101 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
102 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
103 && !cx.types.enums.contains_key(&ident.rust) in check_type_rust_vec()
416 } else if cx.types.enums.contains_key(&receiver.ty.rust) { in check_api_fn()
421 } else if !cx.types.structs.contains_key(&receiver.ty.rust) in check_api_fn()
[all …]
Dmap.rs56 pub fn contains_key<Q>(&self, key: &Q) -> bool in contains_key() function
61 self.map.contains_key(key) in contains_key()
107 pub fn contains_key<Q>(&self, key: &Q) -> bool in contains_key() function
112 self.0.contains_key(key) in contains_key()
Dimproper.rs22 Definite(self.rust.contains(ident) || self.aliases.contains_key(ident)) in determine_improper_ctype()
Dpod.rs22 self.enums.contains_key(ident) in is_guaranteed_pod()
Dtrivial.rs28 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
29 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
/external/crosvm/disk/src/qcow/
Dvec_cache.rs100 pub fn contains_key(&self, key: &usize) -> bool { in contains_key() method
101 self.map.contains_key(key) in contains_key()
181 let num_items = (0..=3).filter(|k| cache.contains_key(&k)).count(); in evicts_when_full()
183 assert!(cache.contains_key(&3)); in evicts_when_full()
Drefcount.rs116 if !self.refblock_cache.contains_key(&table_index) { in set_cluster_refcount()
195 if !self.refblock_cache.contains_key(&table_index) { in get_cluster_refcount()
226 if !self.refblock_cache.contains_key(&table_index) { in refcount_block()
/external/rust/crates/hashlink/tests/
Dlinked_hash_map.rs78 assert!(map.contains_key("1")); in test_entry_insert_vacant()
89 assert!(map.contains_key("1")); in test_entry_insert_vacant()
256 assert!(map.contains_key(&Bar(1))); in test_borrow()
257 assert!(map.contains_key(&Bar(2))); in test_borrow()
258 assert!(map.contains_key(&Foo(Bar(1)))); in test_borrow()
259 assert!(map.contains_key(&Foo(Bar(2)))); in test_borrow()
473 assert!(map.contains_key("2")); in test_retain()
474 assert!(map.contains_key("4")); in test_retain()
475 assert!(map.contains_key("6")); in test_retain()
/external/rust/crates/linked-hash-map/tests/
Dtest.rs48 assert!(map.contains_key("1")); in test_entry_insert_vacant()
59 assert!(map.contains_key("1")); in test_entry_insert_vacant()
385 assert!(map.contains_key(&Bar(1))); in test_borrow()
386 assert!(map.contains_key(&Bar(2))); in test_borrow()
387 assert!(map.contains_key(&Foo(Bar(1)))); in test_borrow()
388 assert!(map.contains_key(&Foo(Bar(2)))); in test_borrow()
/external/rust/crates/bindgen/src/ir/analysis/
Dtemplate_params.rs471 extra_assert!(used.contains_key(item)); in new()
472 extra_assert!(dependencies.contains_key(item)); in new()
476 extra_assert!(used.contains_key(&sub_item)); in new()
477 extra_assert!(dependencies.contains_key(&sub_item)); in new()
/external/rust/crates/clap/src/
Dmap.rs47 pub fn contains_key(&self, key: usize) -> bool { in contains_key() method
48 self.inner.contains_key(&key) in contains_key()
/external/rust/crates/criterion-plot/src/
Dmap.rs45 pub fn contains_key(&self, key: Axis) -> bool { in contains_key() method
125 pub fn contains_key(&self, key: Grid) -> bool { in contains_key() method
/external/rust/crates/weak-table/src/
Dptr_weak_weak_hash_map.rs105 pub fn contains_key(&self, key: &K::Strong) -> bool { in contains_key() function
106 self.0.contains_key(&(key.deref() as *const _)) in contains_key()
295 assert!(weakmap.contains_key(key)); in insert_and_check()
Dptr_weak_key_hash_map.rs104 pub fn contains_key(&self, key:&K::Strong) -> bool { in contains_key() function
105 self.0.contains_key(&(key.deref() as *const _)) in contains_key()
342 assert!(weakmap.contains_key(item)); in insert_and_check()
Dweak_key_hash_map.rs398 pub fn contains_key<Q>(&self, key: &Q) -> bool in contains_key() method
1015 assert!( !map.contains_key("five") ); in simple()
1021 assert!( map.contains_key("five") ); in simple()
1026 assert!( !map.contains_key("five") ); in simple()
1031 assert!( !map.contains_key("five") ); in simple()
/external/rust/crates/tokio-stream/tests/
Dstream_stream_map.rs52 assert!(map.contains_key("foo")); in single_entry()
53 assert!(!map.contains_key("bar")); in single_entry()
309 assert!(map.contains_key("foo")); in contains_key_borrow()
/external/rust/crates/quiche/examples/
Dserver.rs175 let (_, client) = if !clients.contains_key(&hdr.dcid) && in main()
176 !clients.contains_key(conn_id) in main()
493 if !client.partial_responses.contains_key(&stream_id) { in handle_writable()
Dhttp3-server.rs183 let (_, client) = if !clients.contains_key(&hdr.dcid) && in main()
184 !clients.contains_key(conn_id) in main()
612 if !client.partial_responses.contains_key(&stream_id) { in handle_writable()
/external/crosvm/rutabaga_gfx/src/
Drutabaga_core.rs338 if self.resources.contains_key(&resource_id) { in resource_create_3d()
456 if self.resources.contains_key(&resource_id) { in resource_create_blob()
493 if !self.resources.contains_key(&resource_id) { in map()
585 if self.contexts.contains_key(&ctx_id) { in create_context()
/external/rust/crates/plotters/src/style/font/
Dttf.rs200 assert!(CACHE.read().unwrap().contains_key("serif")); in test_font_cache()
203 assert!(CACHE.read().unwrap().contains_key("serif")); in test_font_cache()
/external/rust/crates/hashbrown/src/
Dmap.rs1048 pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool in contains_key() function
3549 assert!(m.contains_key(&1)); in test_create_capacity_zero()
3550 assert!(!m.contains_key(&0)); in test_create_capacity_zero()
3801 assert!(!m.contains_key(&i)); in test_lots_of_insertions()
3809 assert!(!m.contains_key(&j)); in test_lots_of_insertions()
3813 assert!(m.contains_key(&j)); in test_lots_of_insertions()
3818 assert!(!m.contains_key(&i)); in test_lots_of_insertions()
3830 assert!(!m.contains_key(&j)); in test_lots_of_insertions()
3834 assert!(m.contains_key(&j)); in test_lots_of_insertions()
4267 assert!(m.contains_key(k), "{} is in keys() but not in the map?", k); in test_entry_take_doesnt_corrupt()
[all …]
/external/crosvm/devices/src/virtio/video/decoder/
Dcapability.rs80 let levels: BTreeMap<Format, Vec<Level>> = if profiles.contains_key(&Format::H264) { in new()
/external/rust/crates/lru-cache/src/
Dlib.rs96 pub fn contains_key<Q: ?Sized>(&mut self, key: &Q) -> bool in contains_key() method
462 assert_eq!(cache.contains_key("1"), true); in test_contains_key()
/external/rust/cxx/gen/src/
Dwrite.rs1570 out.types.structs.contains_key(ident) in write_unique_ptr_common()
1571 || out.types.enums.contains_key(ident) in write_unique_ptr_common()
1572 || out.types.aliases.contains_key(ident) in write_unique_ptr_common()
1579 !out.types.structs.contains_key(ident) && !out.types.enums.contains_key(ident) in write_unique_ptr_common()
1681 let can_construct_from_value = out.types.structs.contains_key(ident) in write_shared_ptr()
1682 || out.types.enums.contains_key(ident) in write_shared_ptr()
1683 || out.types.aliases.contains_key(ident); in write_shared_ptr()

123