Home
last modified time | relevance | path

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

1234

/external/rust/cxx/syntax/
Dtypes.rs76 || structs.contains_key(ident) in collect()
77 || enums.contains_key(ident)) in collect()
101 || structs.contains_key(ident) in collect()
102 || enums.contains_key(ident)) in collect()
121 || !structs.contains_key(ident) && !enums.contains_key(ident)) in collect()
185 Atom::from(ident.rust).is_none() && !aliases.contains_key(ident.rust) in collect()
188 if implicit_impl && !impls.contains_key(&impl_key) { in collect()
268 self.structs.contains_key(ty) in is_maybe_trivial()
269 || self.enums.contains_key(ty) in is_maybe_trivial()
270 || self.aliases.contains_key(ty) in is_maybe_trivial()
Dcheck.rs85 && !cx.types.structs.contains_key(ident) in check_type_ident()
86 && !cx.types.enums.contains_key(ident) in check_type_ident()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
119 && !cx.types.enums.contains_key(&ident.rust) in check_type_rust_vec()
269 cx.types.rust.contains(&ident.rust) || cx.types.aliases.contains_key(&ident.rust) in check_type_slice_ref()
438 } else if cx.types.enums.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.rs29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
/external/rust/crates/indexmap/tests/
Dequivalent_trait.rs38 assert!(map.contains_key(&Pair("a", "b"))); in test_lookup()
39 assert!(!map.contains_key(&Pair("b", "a"))); in test_lookup()
50 assert!(map.contains_key("a")); in test_string_str()
51 assert!(!map.contains_key("z")); in test_string_str()
Dquick.rs169 assert!(keys.iter().all(|key| map.contains_key(key)));
333 assert!(b.contains_key(key), "b does not contain {:?}", key); in assert_maps_equivalent()
366 assert!(!visit.contains_key(k));
381 assert!(!visit.contains_key(k));
413 map.retain(|k, _| !remove_map.contains_key(k));
418 assert!(map.contains_key(key));
421 … itertools::assert_equal(map.keys(), initial_map.keys().filter(|&k| !remove_map.contains_key(k)));
475 if !last_val_per_key.contains_key(&k) {
/external/crosvm/disk/src/qcow/
Dvec_cache.rs101 pub fn contains_key(&self, key: &usize) -> bool { in contains_key() method
102 self.map.contains_key(key) in contains_key()
182 let num_items = (0..=3).filter(|k| cache.contains_key(k)).count(); in evicts_when_full()
184 assert!(cache.contains_key(&3)); in evicts_when_full()
Drefcount.rs105 if !self.refblock_cache.contains_key(&table_index) { in set_cluster_refcount()
184 if !self.refblock_cache.contains_key(&table_index) { in get_cluster_refcount()
/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/tokio-util/tests/
Dtask_join_map.rs135 assert!(!map.contains_key(&key)); in abort_by_key()
141 assert!(!map.contains_key(&key)); in abort_by_key()
169 assert!(!map.contains_key(&key)); in abort_by_predicate()
175 assert!(!map.contains_key(&key)); in abort_by_predicate()
/external/rust/crates/bindgen/ir/analysis/
Dtemplate_params.rs474 extra_assert!(used.contains_key(item)); in new()
475 extra_assert!(dependencies.contains_key(item)); in new()
479 extra_assert!(used.contains_key(&sub_item)); in new()
480 extra_assert!(dependencies.contains_key(&sub_item)); in new()
/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.rs133 pub fn contains_key(&self, key: &K::Strong) -> bool { in contains_key() function
134 self.0.contains_key(&(key.deref() as *const _)) in contains_key()
357 assert!(weakmap.contains_key(key)); in insert_and_check()
Dptr_weak_key_hash_map.rs132 pub fn contains_key(&self, key:&K::Strong) -> bool { in contains_key() function
133 self.0.contains_key(&(key.deref() as *const _)) in contains_key()
413 assert!(weakmap.contains_key(item)); in insert_and_check()
/external/rust/crates/thiserror-impl/src/
Dfmt.rs54 if !member_index.contains_key(&member) { in expand_shorthand()
107 if read.starts_with('}') && member_index.contains_key(&member) { in expand_shorthand()
/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/crosvm/rutabaga_gfx/src/
Drutabaga_core.rs414 if self.resources.contains_key(&resource_id) { in resource_create_3d()
546 if self.resources.contains_key(&resource_id) { in resource_create_blob()
588 if !self.resources.contains_key(&resource_id) { in map()
602 if !self.resources.contains_key(&resource_id) { in unmap()
704 if self.contexts.contains_key(&ctx_id) { in create_context()
/external/rust/crates/quiche/examples/
Dserver.rs179 let client = if !clients.contains_key(&hdr.dcid) && in main()
180 !clients.contains_key(&conn_id) in main()
504 if !client.partial_responses.contains_key(&stream_id) { in handle_writable()
Dhttp3-server.rs181 let client = if !clients.contains_key(&hdr.dcid) && in main()
182 !clients.contains_key(&conn_id) in main()
628 if !client.partial_responses.contains_key(&stream_id) { in handle_writable()
/external/rust/crates/x509-parser/src/
Drevocation_list.rs191 if m.contains_key(&ext.oid) { in extensions_map()
277 if m.contains_key(&ext.oid) { in extensions_map()
/external/rust/crates/ucd-trie/src/
Downed.rs233 if !bychild.contains_key(&chunk) { in compress_postfix_leaves()
255 if !bychild.contains_key(chunk) { in compress_postfix_mid()
/external/rust/beto-rust/nearby/presence/ldt_np_adv_ffi/src/
Dhandle_map.rs108 while self.map.contains_key(&handle) { in insert()
/external/uwb/src/rust/uwb_core/src/params/
Dapp_config_params.rs111 && config_map.keys().all(|key| prev_config_map.contains_key(key)) in diff_config_map()

1234