/external/rust/crates/hashlink/tests/ |
D | lru_cache.rs | 155 cache.entry(7).or_insert(70); in test_entry() 156 cache.entry(8).or_insert(80); in test_entry() 157 cache.entry(9).or_insert(90); in test_entry() 161 cache.raw_entry_mut().from_key(&10).or_insert(10, 100); in test_entry() 162 cache.raw_entry_mut().from_key(&11).or_insert(11, 110); in test_entry() 163 cache.raw_entry_mut().from_key(&12).or_insert(12, 120); in test_entry()
|
/external/rust/crates/bindgen/src/ir/analysis/ |
D | template_params.rs | 402 dependencies.entry(item).or_insert(vec![]); in new() 403 used.entry(item).or_insert(Some(ItemSet::new())); in new() 411 used.entry(sub_item).or_insert(Some(ItemSet::new())); in new() 414 .or_insert(vec![]) in new() 449 used.entry(arg).or_insert(Some(ItemSet::new())); in new() 450 used.entry(param).or_insert(Some(ItemSet::new())); in new() 452 dependencies.entry(arg).or_insert(vec![]).push(param); in new()
|
D | mod.rs | 187 dependencies.entry(item).or_insert(vec![]); in generate_dependencies() 200 .or_insert(vec![]) in generate_dependencies() 284 reversed.0.entry(*node).or_insert(vec![]); in reverse() 286 reversed.0.entry(*referent).or_insert(vec![]).push(*node); in reverse() 331 .or_insert(HashSet::default()) in constrain() 340 .or_insert(HashSet::default()) in constrain()
|
/external/rust/crates/gdbstub/examples/armv4t_multicore/ |
D | gdb.rs | 205 let entry = self.watchpoint_kind.entry(addr).or_insert((false, false)); in add_hw_watchpoint() 216 let entry = self.watchpoint_kind.entry(addr).or_insert((false, false)); in remove_hw_watchpoint()
|
/external/rust/crates/clap/src/args/ |
D | arg_matcher.rs | 222 let ma = self.entry(arg).or_insert(MatchedArg { in add_val_to() 231 let ma = self.entry(arg).or_insert(MatchedArg { in add_index_to()
|
/external/rust/crates/serde_json/src/value/ |
D | index.rs | 98 Value::Object(ref mut map) => map.entry(self.to_owned()).or_insert(Value::Null), in index_or_insert()
|
/external/crosvm/arch/src/ |
D | serial.rs | 366 .or_insert(SerialParameters { in set_default_serial_parameters() 383 serial_parameters.entry(key).or_insert(SerialParameters { in set_default_serial_parameters()
|
/external/rust/crates/hashbrown/src/ |
D | rustc_entry.rs | 179 pub fn or_insert(self, default: V) -> &'a mut V in or_insert() method
|
D | map.rs | 1966 pub fn or_insert(self, default_key: K, default_val: V) -> (&'a mut K, &'a mut V) in or_insert() method 2748 pub fn or_insert(self, default: V) -> &'a mut V in or_insert() method 3758 assert!(*m.entry(0).or_insert(true)); in test_empty_entry()
|
D | set.rs | 828 .or_insert(value, ()) in get_or_insert()
|
/external/rust/crates/intrusive-collections/src/ |
D | rbtree.rs | 1886 pub fn or_insert(self, val: <A::PointerOps as PointerOps>::Pointer) -> CursorMut<'a, A> { 2740 t.entry(&3).or_insert(c.clone()); 2741 t.entry(&2).or_insert(b.clone()); 2742 t.entry(&1).or_insert(a.clone()); 2748 assert_eq!(t.entry(&2).or_insert(b.clone()).get().unwrap().value, 2); 2763 assert_eq!(t.entry(&4).or_insert(d.clone()).get().unwrap().value, 4);
|
/external/rust/crates/weak-table/src/ |
D | weak_value_hash_map.rs | 218 self.entry_no_grow(key).or_insert(value); in resize() 557 pub fn or_insert(self, default: V::Strong) -> V::Strong { in or_insert() method
|
D | weak_weak_hash_map.rs | 218 self.entry_no_grow(key).or_insert(value); in resize() 560 pub fn or_insert(self, default: V::Strong) -> V::Strong { in or_insert() method
|
D | weak_key_hash_map.rs | 257 self.entry_no_grow(key).or_insert(value); in resize() 650 pub fn or_insert(self, default: V) -> &'a mut V { in or_insert() method
|
/external/rust/crates/clap/src/app/ |
D | help.rs | 258 let btm = ord_m.entry(arg.disp_ord()).or_insert(BTreeMap::new()); in write_args() 668 let btm = ord_m.entry(sc.p.meta.disp_ord).or_insert(BTreeMap::new()); in write_subcommands()
|
/external/rust/crates/serde_json/src/ |
D | map.rs | 515 pub fn or_insert(self, default: Value) -> &'a mut Value { in or_insert() method
|
/external/rust/crates/linked-hash-map/src/ |
D | lib.rs | 1197 pub fn or_insert(self, default: V) -> &'a mut V { in or_insert() method 1306 let ret = self.map.map.entry(KeyRef{k: keyref}).or_insert(node); in insert()
|
/external/rust/crates/hashlink/src/ |
D | linked_hash_set.rs | 172 .or_insert(value, ()) in get_or_insert()
|
D | linked_hash_map.rs | 650 pub fn or_insert(self, default: V) -> &'a mut V in or_insert() method 977 pub fn or_insert(self, default_key: K, default_val: V) -> (&'a mut K, &'a mut V) in or_insert() method
|
/external/rust/crates/bindgen/src/codegen/ |
D | mod.rs | 298 let counter = self.overload_counters.entry(name.into()).or_insert(0); in overload_number() 2322 let count = method_names.entry(name.clone()).or_insert(0); in codegen_method()
|
/external/rust/crates/bindgen/src/ir/ |
D | context.rs | 1309 used_params.entry(id).or_insert( in find_used_template_parameters()
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | integration_test.rs | 1263 *stats.entry(choice).or_insert(0) += 1; in table_of_mixed_scalars_fuzz()
|