summary refs log tree commit diff
path: root/library/core/src/iter
AgeCommit message (Expand)AuthorLines
2022-08-24Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplettMatthias Krüger-12/+17
2022-08-19Auto merge of #99541 - timvermeulen:flatten_cleanup, r=the8472bors-137/+238
2022-08-14Properly forward `ByRefSized::fold` to the inner iteratorScott McMurray-12/+17
2022-08-14fix(iter::skip): Optimize `next` and `nth` implementations of `Skip`austinabell-8/+19
2022-08-12fill-in tracking issue for `feature(iter_array_chunks)`Maybe Waffle-9/+9
2022-08-12address review commentsMaybe Waffle-6/+8
2022-08-05Move `rfold` logic into `iter_rfold`Tim Vermeulen-19/+35
2022-08-05Move `fold` logic to `iter_fold` method and reuse it in `count` and `last`Tim Vermeulen-16/+76
2022-08-05Move shared logic of `try_rfold` and `advance_back_by` into `iter_try_rfold`Tim Vermeulen-54/+65
2022-08-05Move shared logic of `try_fold` and `advance_by` into `iter_try_fold`Tim Vermeulen-52/+66
2022-08-02Use `next_chunk` in `ArrayChunks` implMaybe Waffle-132/+37
2022-08-01Simplify `ArrayChunks::{,r}fold` implsMaybe Waffle-46/+4
2022-08-01Simplify `ArrayChunks::is_empty`Maybe Waffle-1/+1
2022-08-01Remove `Fuse` from `ArrayChunks` implementationMaybe Waffle-3/+3
2022-08-01Use `#[track_caller]` to make panic in `Iterator::array_chunks` nicerMaybe Waffle-0/+2
2022-08-01Remove incorrect impl `TrustedLen` for `ArrayChunks`Maybe Waffle-9/+2
2022-08-01Forward `ArrayChunks::next{,_back}` to `try_{for_each,rfold}`Maybe Waffle-42/+2
2022-08-01Remove `array::IntoIter::with_partial` -- an artifact of the past, once used ...Maybe Waffle-3/+4
2022-08-01Use `array::IntoIter` for the `ArrayChunks` remainderRoss MacArthur-81/+18
2022-08-01Add `Iterator::array_chunks()`Ross MacArthur-1/+474
2022-07-18Fix `Skip::next` for non-fused inner iteratorsTim Vermeulen-1/+1
2022-06-30clarify that ExactSizeIterator::len returns the remaining lengthThe 8472-5/+11
2022-06-28Rollup merge of #98430 - camsteffen:flatten-refactor, r=joshtriplettDylan DPC-117/+56
2022-06-22Refactor iter adapters with less macrosCameron Steffen-117/+56
2022-06-21Add `Iterator::next_chunk`Ross MacArthur-0/+42
2022-06-18Expose iter::ByRefSized as unstable feature and use itPaolo Barbolini-3/+10
2022-06-08Suggest using `iter()` or `into_iter()` for `Vec`Chayim Refael Friedman-0/+4
2022-05-27libcore: Add `iter::from_generator` which is like `iter::from_fn`, but for co...Vadim Petrochenkov-0/+57
2022-05-14Auto merge of #95602 - scottmcm:faster-array-intoiter-fold, r=the8472bors-0/+40
2022-05-13Slap #[inline] on all the ByRefSized methods, per the8472's suggestionScott McMurray-0/+11
2022-05-08Warn on unused doc(hidden) on trait impl itemsLeón Orell Valerian Liehr-7/+0
2022-05-02This aligns the inline attributes of existing `__iterator_get_unchecked` with...The 8472-0/+4
2022-04-28Rollup merge of #96480 - user-simon:patch-1, r=Dylan-DPCDylan DPC-1/+1
2022-04-27Fixed grammatical error in example commentSimon-1/+1
2022-04-26Better error messages when collecting into `[T; n]`Michael Goulet-19/+13
2022-04-23Auto merge of #90602 - mbartlett21:const-intoiterator, r=oli-obkbors-1/+2
2022-04-14Remove trailing whitespaceBoyd Kane-1/+1
2022-04-14docs: add link from zip to unzipBoyd Kane-0/+4
2022-04-02Fix `array::IntoIter::fold` to use the optimized `Range::fold`Scott McMurray-0/+29
2022-03-26Remove mention of HashMap<K, V> not offering iter_mutdlup-4/+3
2022-03-24Auto merge of #87667 - the8472:document-in-place-iter, r=yaahcbors-0/+9
2022-03-22add perf side effect docs to `Iterator::cloned()`Andre Bogus-0/+16
2022-03-21add module-level documentation for vec's in-place iterationThe8472-0/+9
2022-03-18Rollup merge of #94115 - scottmcm:iter-process-by-ref, r=yaahcMatthias Krüger-2/+48
2022-03-15Unstably constify `impl IntoIterator for I: ~const Iterator`mbartlett21-1/+2
2022-03-10Rollup merge of #93950 - T-O-R-U-S:use-modern-formatting-for-format!-macros, ...Dylan DPC-26/+26
2022-03-10Rollup merge of #94587 - JKAnderson409:issue-90107-fix, r=scottmcmMatthias Krüger-3/+16
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-26/+26
2022-03-10Rollup merge of #94746 - notriddle:notriddle/method-rustc-on-unimplemented, r...Matthias Krüger-0/+5
2022-03-10Let `try_collect` take advantage of `try_fold` overridesScott McMurray-2/+48