summary refs log tree commit diff
path: root/library/core/src/iter/adapters
AgeCommit message (Expand)AuthorLines
2023-05-20optimize next_chunk impls for Filter and FilterMapThe 8472-1/+116
2023-05-11Populate effective visibilities in rustc_privacyBryanskiy-0/+6
2023-05-08Revert "Populate effective visibilities in `rustc_privacy`"Michael Goulet-6/+0
2023-05-08Auto merge of #106621 - ozkanonur:enable-elided-lifetimes-for-doctests, r=Mar...bors-1/+1
2023-05-07enable `rust_2018_idioms` for doctestsozkanonur-1/+1
2023-05-05Populate effective visibilities in `rustc_privacy`Bryanskiy-0/+6
2023-04-28replace version placeholdersPietro Albini-7/+7
2023-04-25simplify TrustedLen implsTamir Duberstein-34/+28
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-69/+92
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-124/+86
2023-02-28relax bounds on iterator adapter Default implsThe 8472-25/+6
2023-02-28rewrite iterator `Default` tests as doctestsThe 8472-0/+59
2023-02-28Implement Default for some alloc/core iteratorsThe 8472-0/+71
2023-02-04Allow canonicalizing the `array::map` loop in trusted casesScott McMurray-13/+40
2023-02-03Replace `ConstFnMutClosure` with const closuresDeadbeef-18/+7
2023-01-27Remove `ControlFlow::{BREAK, CONTINUE}`Scott McMurray-3/+3
2022-11-24Tune RepeatWith::try_fold and Take::for_each and Vec::extend_trustedScott McMurray-1/+20
2022-11-08document and improve array Guard typeThe 8472-3/+5
2022-11-07simplification: do not process the ArrayChunks remainder in fold()The 8472-18/+2
2022-11-07specialize iter::ArrayChunks::fold for TrustedRandomAccess itersThe 8472-3/+86
2022-10-19specialize slice_iter.copied().next_chunk()The 8472-0/+74
2022-09-26Use a macro to not have to copy-paste `ConstFnMutClosure::new(&mut fold, Neve...Scott McMurray-88/+10
2022-09-23Constifed Try traitonestacked-11/+22
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-7/+7
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/+1
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-79/+14
2022-08-01Add `Iterator::array_chunks()`Ross MacArthur-0/+431
2022-07-18Fix `Skip::next` for non-fused inner iteratorsTim Vermeulen-1/+1
2022-06-22Refactor iter adapters with less macrosCameron Steffen-117/+56
2022-06-18Expose iter::ByRefSized as unstable feature and use itPaolo Barbolini-2/+7
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-6/+0
2022-05-02This aligns the inline attributes of existing `__iterator_get_unchecked` with...The 8472-0/+4