Home
last modified time | relevance | path

Searched refs:or_insert (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/hashlink/tests/
Dlru_cache.rs155 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/
Dtemplate_params.rs402 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()
Dmod.rs187 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/
Dgdb.rs205 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/
Darg_matcher.rs222 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/
Dindex.rs98 Value::Object(ref mut map) => map.entry(self.to_owned()).or_insert(Value::Null), in index_or_insert()
/external/crosvm/arch/src/
Dserial.rs366 .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/
Drustc_entry.rs179 pub fn or_insert(self, default: V) -> &'a mut V in or_insert() method
Dmap.rs1966 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()
Dset.rs828 .or_insert(value, ()) in get_or_insert()
/external/rust/crates/intrusive-collections/src/
Drbtree.rs1886 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/
Dweak_value_hash_map.rs218 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
Dweak_weak_hash_map.rs218 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
Dweak_key_hash_map.rs257 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/
Dhelp.rs258 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/
Dmap.rs515 pub fn or_insert(self, default: Value) -> &'a mut Value { in or_insert() method
/external/rust/crates/linked-hash-map/src/
Dlib.rs1197 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/
Dlinked_hash_set.rs172 .or_insert(value, ()) in get_or_insert()
Dlinked_hash_map.rs650 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/
Dmod.rs298 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/
Dcontext.rs1309 used_params.entry(id).or_insert( in find_used_template_parameters()
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1263 *stats.entry(choice).or_insert(0) += 1; in table_of_mixed_scalars_fuzz()