Home
last modified time | relevance | path

Searched refs:iter_mut (Results 1 – 25 of 162) sorted by relevance

1234567

/external/rust/crates/futures/tests/
Dfutures_unordered.rs25 assert_eq!(tasks.iter_mut().len(), 0); in is_terminated()
31 assert_eq!(tasks.iter_mut().len(), 1); in is_terminated()
157 for rx in stream.iter_mut() { in iter_mut_cancel()
186 let mut iter_mut = stream.iter_mut(); in iter_mut_len() localVariable
187 assert_eq!(iter_mut.len(), 3); in iter_mut_len()
188 assert!(iter_mut.next().is_some()); in iter_mut_len()
189 assert_eq!(iter_mut.len(), 2); in iter_mut_len()
190 assert!(iter_mut.next().is_some()); in iter_mut_len()
191 assert_eq!(iter_mut.len(), 1); in iter_mut_len()
192 assert!(iter_mut.next().is_some()); in iter_mut_len()
[all …]
/external/rust/crates/gdbstub/src/arch/x86/reg/
Dcore64.rs86 for reg in self.regs.iter_mut() { in gdb_deserialize()
97 for seg in self.segments.iter_mut() { in gdb_deserialize()
103 for reg in self.st.iter_mut() { in gdb_deserialize()
113 for reg in self.xmm.iter_mut() { in gdb_deserialize()
Dcore32.rs110 for seg in self.segments.iter_mut() { in gdb_deserialize()
116 for reg in self.st.iter_mut() { in gdb_deserialize()
126 for reg in self.xmm.iter_mut() { in gdb_deserialize()
/external/rust/crates/rand_chacha/src/
Dchacha.rs300 for i in results.iter_mut() { in test_chacha_true_values_a()
310 for i in results.iter_mut() { in test_chacha_true_values_a()
337 for i in results.iter_mut() { in test_chacha_true_values_b()
369 for i in results.iter_mut() { in test_chacha_true_values_c()
378 for i in results.iter_mut() { in test_chacha_true_values_c()
410 for i in results.iter_mut() { in test_chacha_multiple_blocks()
449 for i in results.iter_mut() { in test_chacha_nonce()
/external/rust/crates/thread_local/src/
Dcached.rs65 pub fn iter_mut(&mut self) -> CachedIterMut<T> { in iter_mut() method
67 inner: self.inner.iter_mut(), in iter_mut()
99 self.iter_mut() in into_iter()
Dlib.rs146 for (i, bucket) in self.buckets.iter_mut().enumerate() { in drop()
180 for (i, bucket) in buckets[..allocated_buckets].iter_mut().enumerate() { in with_capacity()
296 pub fn iter_mut(&mut self) -> IterMut<T> { in iter_mut() method
340 self.iter_mut() in into_iter()
606 let mut v = tls.iter_mut().map(|x| **x).collect::<Vec<i32>>(); in iter()
/external/rust/crates/rand_core/src/
Dle.rs20 for (out, chunk) in dst.iter_mut().zip(src.chunks_exact(4)) { in read_u32_into()
29 for (out, chunk) in dst.iter_mut().zip(src.chunks_exact(8)) { in read_u64_into()
/external/rust/crates/nix/src/sys/
Dselect.rs179 readfds.iter_mut() in select()
180 .chain(writefds.iter_mut()) in select()
181 .chain(errorfds.iter_mut()) in select()
250 readfds.iter_mut() in pselect()
251 .chain(writefds.iter_mut()) in pselect()
252 .chain(errorfds.iter_mut()) in pselect()
/external/rust/crates/itertools/benches/
Dbench1.rs391 for (index, elt) in data.iter_mut().enumerate() { in group_by_lazy_1()
410 for (index, elt) in data.iter_mut().enumerate() { in group_by_lazy_2()
478 for (_, elt) in data1.iter_mut().enumerate() { in merge_default()
484 for (i, elt) in data2.iter_mut().enumerate() { in merge_default()
506 for (_, elt) in data1.iter_mut().enumerate() { in merge_by_cmp()
512 for (i, elt) in data2.iter_mut().enumerate() { in merge_by_cmp()
534 for (_, elt) in data1.iter_mut().enumerate() { in merge_by_lt()
540 for (i, elt) in data2.iter_mut().enumerate() { in merge_by_lt()
562 for (_, elt) in data1.iter_mut().enumerate() { in kmerge_default()
568 for (i, elt) in data2.iter_mut().enumerate() { in kmerge_default()
/external/rust/crates/syn/tests/
Dtest_iterators.rs41 check_exact_size_iterator!(p.iter_mut()); in iter()
47 assert_eq!(p.iter_mut().next_back(), Some(&mut 4)); in iter()
/external/rust/crates/rand_xorshift/tests/
Dmod.rs23 for i in results.iter_mut() { *i = rng.next_u32(); } in test_xorshift_true_values()
30 for i in results.iter_mut() { *i = rng.next_u64(); } in test_xorshift_true_values()
/external/rust/crates/lru-cache/src/
Dlib.rs304 pub fn iter_mut(&mut self) -> IterMut<K, V> { IterMut(self.map.iter_mut()) } in iter_mut() method
339 fn into_iter(self) -> IterMut<'a, K, V> { self.iter_mut() } in into_iter()
560 assert_eq!(cache.iter_mut().collect::<Vec<_>>(), in test_iter()
564 assert_eq!(cache.iter_mut().rev().collect::<Vec<_>>(), in test_iter()
/external/rust/crates/crossbeam-channel/src/
Dselect.rs219 for (handle, i, _) in handles.iter_mut() { in run_select()
261 for (handle, _, _) in handles.iter_mut().take(registered_count) { in run_select()
280 for (handle, i, ptr) in handles.iter_mut() { in run_select()
377 for (handle, _, _) in handles.iter_mut() { in run_ready()
416 for (handle, _, _) in handles.iter_mut().take(registered_count) { in run_ready()
425 for (handle, i, _) in handles.iter_mut() { in run_ready()
/external/rust/crates/zip/src/
Dzipcrypto.rs89 for byte in header_buf.iter_mut() { in validate()
115 for byte in buf.iter_mut() { in read()
/external/rust/crates/tokio-stream/src/
Dstream_map.rs222 pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (K, V)> { in iter_mut() method
223 self.entries.iter_mut() in iter_mut()
326 self.iter_mut().map(|(_, v)| v) in values_mut()
/external/rust/crates/slab/tests/
Dslab.rs212 fn iter_mut() { in iter_mut() function
219 for (i, (key, e)) in slab.iter_mut().enumerate() { in iter_mut()
229 for (_, e) in slab.iter_mut() { in iter_mut()
/external/rust/crates/hashlink/src/
Dlru_cache.rs75 pub fn iter_mut(&mut self) -> IterMut<K, V> { in iter_mut() method
76 self.map.iter_mut() in iter_mut()
280 self.iter_mut() in into_iter()
/external/rust/crates/syn/src/
Ddata.rs90 pub fn iter_mut(&mut self) -> punctuated::IterMut<Field> { in iter_mut() method
93 Fields::Named(f) => f.named.iter_mut(), in iter_mut()
94 Fields::Unnamed(f) => f.unnamed.iter_mut(), in iter_mut()
144 self.iter_mut() in into_iter()
/external/crosvm/disk/src/qcow/
Dvec_cache.rs112 pub fn iter_mut(&mut self) -> IterMut<usize, T> { in iter_mut() method
113 self.map.iter_mut() in iter_mut()
/external/rust/crates/hashlink/tests/
Dlru_cache.rs110 cache.iter_mut().collect::<Vec<_>>(), in test_iter()
118 cache.iter_mut().rev().collect::<Vec<_>>(), in test_iter()
/external/rust/crates/slab/src/
Dlib.rs470 pub fn iter_mut(&mut self) -> IterMut<T> { in iter_mut() method
472 entries: self.entries.iter_mut(), in iter_mut()
817 self.iter_mut() in into_iter()
/external/crosvm/gpu_display/examples/
Dsimple_open.rs10 for (x, item) in row.iter_mut().enumerate() { in main()
/external/rust/crates/regex-automata/src/nfa/
Dmod.rs162 for r in ranges.iter_mut() { in remap()
167 for alt in alternates.iter_mut() { in remap()
/external/rust/crates/ring/src/
Dhmac.rs247 for (padded_key, key_value) in padded_key.iter_mut().zip(key_value.iter()) { in new()
256 for b in padded_key.iter_mut() { in new()
/external/rust/crates/gdbstub/src/arch/mips/reg/
Dmips.rs151 for reg in self.r.iter_mut() { in gdb_deserialize()
170 for reg in self.fpu.r.iter_mut() { in gdb_deserialize()

1234567