/external/rust/crates/fallible-iterator/src/ |
D | test.rs | 34 let a = convert(vec![0, 1, 2, 3].into_iter().map(Ok::<u32, ()>)); in chain() 35 let b = convert(vec![4, 5, 6, 7].into_iter().map(Ok::<u32, ()>)); in chain() 40 let a = convert(vec![0, 1, 2, 3].into_iter().map(Ok::<u32, ()>)); in chain() 41 let b = convert(vec![4, 5, 6, 7].into_iter().map(Ok::<u32, ()>)); in chain() 56 let it = Some(Ok(1)).into_iter().chain(iter::repeat(Err(()))); in count() 62 let it = convert(vec![5, 6, 7, 8].into_iter().map(Ok::<u32, ()>)).enumerate(); in enumerate() 72 let it = convert(vec![0, 1, 2, 3].into_iter().map(Ok::<u32, u32>)); in filter() 78 let it = convert(vec![0, 2, 4, 6].into_iter().map(Ok::<u32, u32>)); in filter() 97 let it = convert(vec![0, 1, 2, 3, 4, 5, 6].into_iter().map(Ok::<u32, u32>)) in filter_map() 104 convert(vec![0, 2, 3, 4, 6].into_iter().map(Ok::<u32, u32>)).filter_map(twos_and_threes); in filter_map() [all …]
|
/external/rust/crates/itertools/src/ |
D | free.rs | 52 iterable.into_iter().enumerate() in enumerate() 70 iterable.into_iter().rev() in rev() 89 i.into_iter().zip(j) in zip() 107 i.into_iter().chain(j) in chain() 123 iterable.into_iter().cloned() in cloned() 139 iterable.into_iter().fold(init, f) in fold() 155 iterable.into_iter().all(f) in all() 171 iterable.into_iter().any(f) in any() 187 iterable.into_iter().max() in max() 203 iterable.into_iter().min() in min() [all …]
|
D | lib.rs | 263 $crate::__std_iter::IntoIterator::into_iter($I) 325 $crate::__std_iter::IntoIterator::into_iter($first) 398 adaptors::interleave_shortest(self, other.into_iter()) in interleave_shortest() 472 zip_longest::zip_longest(self, other.into_iter()) in zip_longest() 878 adaptors::merge_by_new(self, other.into_iter(), is_first) in merge_by() 990 adaptors::cartesian_product(self, other.into_iter()) in cartesian_product() 2262 v.into_iter() in sorted_unstable() 2295 v.into_iter() in sorted_unstable_by() 2329 v.into_iter() in sorted_unstable_by_key() 2358 v.into_iter() in sorted() [all …]
|
/external/rust/crates/itertools/tests/ |
D | quick.rs | 275 for (i, returned_count) in counts.into_iter().enumerate() { in correct_count() 441 assert_eq!(answer.into_iter().last(), a.clone().multi_cartesian_product().last()); 541 itertools::equal(merged.into_iter(), kmerge(vec![sa, sb, sc])) 553 itertools::equal(merged.into_iter(), kmerge(inputs)) 566 itertools::equal(merged.into_iter(), 567 inputs.into_iter().kmerge_by(|x, y| x >= y)) 578 itertools::equal(merged.into_iter(), 579 inputs.into_iter().kmerge_by(|x, y| x < y)) 590 itertools::equal(merged.into_iter(), 591 inputs.into_iter().kmerge_by(|x, y| x <= y)) [all …]
|
D | test_std.rs | 41 let it = v0.into_iter().interleave_shortest(v1.into_iter()); in interleave_shortest() 47 let it = v0.into_iter().interleave_shortest(v1.into_iter()); in interleave_shortest() 53 let it = i0.interleave_shortest(v1.into_iter()); in interleave_shortest() 58 let it = v0.into_iter().interleave_shortest(i1); in interleave_shortest() 301 let results = bt1.into_iter().merge_by(bt2.into_iter(), |a, b| a.0 <= b.0 ); in merge_by_btree() 303 it::assert_equal(results, expected.into_iter()); in merge_by_btree() 317 let its = vec![3, 2, 1, 0].into_iter().map(|s| (s..10).step(4)); in kmerge_2() 392 v.into_iter() 608 let r = v.into_iter().pad_using(5, |n| n); in pad_using() 612 let r = v.into_iter().pad_using(1, |_| panic!()); in pad_using() [all …]
|
D | specializations.rs | 78 let mut pb = itertools::put_back(test_vec.into_iter()); 86 test_specializations(&i1.into_iter().merge_join_by(i2.into_iter(), std::cmp::Ord::cmp)); 92 test_specializations(&v.into_iter().map_into::<u32>()); 98 test_specializations(&v.into_iter().map_ok(|u| u.checked_add(1)));
|
/external/rust/crates/syn/src/ |
D | tt.rs | 20 let s1 = g1.stream().into_iter(); in eq() 21 let mut s2 = g2.stream().into_iter(); in eq() 85 let left = self.0.clone().into_iter().collect::<Vec<_>>(); in eq() 86 let right = other.0.clone().into_iter().collect::<Vec<_>>(); in eq() 90 for (a, b) in left.into_iter().zip(right) { in eq() 101 let tts = self.0.clone().into_iter().collect::<Vec<_>>(); in hash()
|
/external/rust/crates/plotters/benches/benches/ |
D | parallel.rs | 84 .into_iter() in draw_func_4x4() 85 .zip(elements.into_iter()) in draw_func_4x4() 95 .into_iter() in draw_func_4x4() 114 .into_iter() in draw_func_4x4() 115 .zip(elements.into_iter()) in draw_func_4x4() 145 .into_iter() in draw_func_2x1() 146 .zip(elements.into_iter()) in draw_func_2x1()
|
/external/rust/crates/gdbstub/src/protocol/commands/ |
D | _vRun.rs | 13 pub fn into_iter(self) -> impl Iterator<Item = &'a [u8]> + 'a { in into_iter() method 67 let args = pkt.args.into_iter().collect::<Vec<_>>(); in valid_vRun_foobarbaz() 78 let args = pkt.args.into_iter().collect::<Vec<_>>(); in valid_vRun_noname() 89 let args = pkt.args.into_iter().collect::<Vec<_>>(); in valid_vRun_noargs() 100 let args = pkt.args.into_iter().collect::<Vec<_>>(); in valid_vRun_args()
|
/external/rust/crates/which/src/ |
D | finder.rs | 67 Either::Left(Self::cwd_search_candidates(path, cwd).into_iter()) in find() 73 Either::Right(Self::path_search_candidates(path, paths).into_iter()) in find() 95 let new_paths = paths.into_iter().map(move |p| p.join(binary_name.clone())); in path_search_candidates() 122 .into_iter() in append_extension() 134 let ps = exe_extension_vec.clone().into_iter().map(move |e| { in append_extension()
|
/external/rust/crates/paste/src/ |
D | attr.rs | 13 let mut tokens = attr.clone().into_iter(); in expand_attr() 94 .into_iter() in expand_attr() 106 let mut tokens = attr.into_iter().peekable(); in do_paste_name_value_attr() 135 .into_iter() in do_paste_name_value_attr() 154 let mut inner = group.stream().into_iter(); in is_stringlike()
|
/external/rust/crates/rayon/src/iter/ |
D | chunks.rs | 119 fn into_iter(self) -> Self::IntoIter { in into_iter() function 171 Some(left.into_iter().collect()) in next() 175 Some(producer.into_iter().collect()) in next() 209 Some(right.into_iter().collect()) in next_back() 213 Some(producer.into_iter().collect()) in next_back()
|
D | len.rs | 105 fn into_iter(self) -> Self::IntoIter { in into_iter() function 106 self.base.into_iter() in into_iter() 239 fn into_iter(self) -> Self::IntoIter { in into_iter() function 240 self.base.into_iter() in into_iter()
|
/external/rust/crates/protobuf/src/ |
D | descriptorx.rs | 89 .into_iter() in find_message_or_enum() 99 .into_iter() in find_message_or_enum() 146 .into_iter() in find_message_or_enum() 239 .into_iter() in get_messages_and_enums() 243 .into_iter() in get_messages_and_enums() 409 .into_iter() in map_entry() 414 .into_iter() in map_entry() 440 .into_iter() in value_by_name() 619 .into_iter() in find_message_by_rust_name() 633 .into_iter() in find_enum_by_rust_name()
|
/external/rust/crates/proc-macro2/tests/ |
D | test.rs | 122 p.parse::<TokenStream>().unwrap().into_iter().count() in literal_suffix() 149 let mut iter = tokens.into_iter(); in literal_iter_negative() 273 .into_iter() in span_join() 278 .into_iter() in span_join() 313 let mut tts = TokenStream::from_str("~// comment").unwrap().into_iter(); in punct_before_comment() 332 let punct = match stream.into_iter().next().unwrap() { in joint_last_token() 341 let mut tts = TokenStream::from_str("r#dyn").unwrap().into_iter(); in raw_identifier() 476 let mut tokens = "tuple.0.0".parse::<TokenStream>().unwrap().into_iter(); in tuple_indexing()
|
/external/rust/crates/futures/tests/ |
D | futures_unordered.rs | 52 .into_iter() in works_1() 82 .into_iter() in works_2() 106 .into_iter() in from_iterator() 128 .into_iter() in finished_future() 154 .into_iter() in iter_mut_cancel() 183 .into_iter() in iter_mut_len() 236 .into_iter() in iter_cancel() 261 .into_iter() in iter_len() 285 let mut stream = vec![fut; 3].into_iter().collect::<FuturesUnordered<_>>(); in futures_not_moved_after_poll()
|
D | futures_ordered.rs | 12 let mut stream = vec![a_rx, b_rx, c_rx].into_iter().collect::<FuturesOrdered<_>>(); in works_1() 41 ].into_iter().collect::<FuturesOrdered<_>>(); in works_2() 62 ].into_iter().collect::<FuturesOrdered<_>>(); in from_iterator() 84 ].into_iter().collect::<FuturesOrdered<_>>(); in queue_never_unblocked()
|
/external/rust/crates/itertools/src/adaptors/ |
D | multi_product.rs | 31 MultiProduct(iters.map(|i| MultiProductIter::new(i.into_iter())).collect()) in multi_cartesian_product() 171 return self.0.into_iter().fold(1, |acc, multi_iter| { in count() 176 self.0.into_iter().fold( in count() 211 let lasts: Self::Item = self.0.into_iter() in last()
|
/external/rust/crates/weak-table/src/ |
D | weak_hash_set.rs | 236 iter.into_iter().map(|k| (k, ())))) in from_iter() 242 self.0.extend(iter.into_iter().map(|k| (k, ()))) in extend() 258 fn into_iter(self) -> Self::IntoIter { in into_iter() method 259 IntoIter(self.0.into_iter()) in into_iter() 267 fn into_iter(self) -> Self::IntoIter { in into_iter() method
|
D | ptr_weak_hash_set.rs | 215 iter.into_iter().map(|k| (k, ())))) in from_iter() 225 self.0.extend(iter.into_iter().map(|k| (k, ()))) in extend() 242 fn into_iter(self) -> Self::IntoIter { in into_iter() method 243 IntoIter(self.0.into_iter()) in into_iter() 253 fn into_iter(self) -> Self::IntoIter { in into_iter() function
|
/external/rust/crates/smallvec/src/ |
D | tests.rs | 137 fn into_iter() { in into_iter() function 140 assert_eq!(v.into_iter().collect::<Vec<_>>(), &[3]); in into_iter() 147 assert_eq!(v.into_iter().collect::<Vec<_>>(), &[3, 4, 5]); in into_iter() 154 assert_eq!(v.into_iter().rev().collect::<Vec<_>>(), &[3]); in into_iter_rev() 161 assert_eq!(v.into_iter().rev().collect::<Vec<_>>(), &[5, 4, 3]); in into_iter_rev() 180 v.into_iter(); in into_iter_drop() 189 assert!(v.into_iter().next().is_some()); in into_iter_drop() 199 assert!(v.into_iter().next().is_some()); in into_iter_drop() 209 let mut it = v.into_iter(); in into_iter_drop() 626 assert_eq!(vec.clone().into_iter().len(), 3); in test_exact_size_iterator() [all …]
|
/external/rust/crates/regex/src/ |
D | re_set.rs | 296 SetMatchesIter((&*self.matches).into_iter().enumerate()) 304 fn into_iter(self) -> Self::IntoIter { 305 SetMatchesIntoIter(self.matches.into_iter().enumerate()) 313 fn into_iter(self) -> Self::IntoIter {
|
/external/rust/crates/bindgen/src/ir/ |
D | template.rs | 139 .into_iter() in all_template_params() 141 .flat_map(|id| id.self_template_params(ctx).into_iter()) in all_template_params() 160 .into_iter() in used_template_params() 206 args: args.into_iter().collect(), in new()
|
/external/rust/crates/tokio-macros/src/ |
D | select.rs | 8 let branches = match input.into_iter().next() { in declare_output_enum() 9 Some(TokenTree::Group(group)) => group.stream().into_iter().count(), in declare_output_enum()
|
/external/rust/crates/hashbrown/tests/ |
D | rayon.rs | 188 let vec_seq = MAP_EMPTY.clone().into_iter().collect::<Vec<_>>(); in map_seq_par_equivalence_into_iter_empty() 196 let mut vec_seq = MAP.clone().into_iter().collect::<Vec<_>>(); in map_seq_par_equivalence_into_iter() 232 let map_seq = MAP_VEC_EMPTY.clone().into_iter().collect::<HashMap<_, _>>(); in map_seq_par_equivalence_collect_empty() 246 let map_seq = MAP_VEC.clone().into_iter().collect::<HashMap<_, _>>(); in map_seq_par_equivalence_collect() 356 let vec_seq = SET_EMPTY.clone().into_iter().collect::<Vec<_>>(); in set_seq_par_equivalence_into_iter_empty() 364 let mut vec_seq = SET.clone().into_iter().collect::<Vec<_>>(); in set_seq_par_equivalence_into_iter() 386 let set_seq = SET_VEC_EMPTY.clone().into_iter().collect::<HashSet<_>>(); in set_seq_par_equivalence_collect_empty() 400 let set_seq = SET_VEC.clone().into_iter().collect::<HashSet<_>>(); in set_seq_par_equivalence_collect()
|