| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-07-27 | mv std libs to library/ | mark | -425/+0 | |
| 2020-07-17 | Remove code span for impl | Lzu Tao | -3/+3 | |
| Because the old one is harder to read and confuse typing checkers. | ||||
| 2020-07-17 | Link Some(item) | Lzu Tao | -2/+3 | |
| 2020-07-17 | Remove unneeded link for Option | Lzu Tao | -1/+0 | |
| 2020-02-16 | Improve documentation on iterators | LeSeulArtichaut | -1/+2 | |
| 2020-02-04 | Stabilize `core::iter::once_with()` | Yuki Okushi | -1/+1 | |
| 2020-01-28 | Fill tracking issue for `iter_map_while` feature | Waffle | -1/+1 | |
| 2020-01-28 | Add `Iterator::map_while` method and corresponding `MapWhile` adapter | Waffle | -0/+2 | |
| 2019-12-23 | docs: Iterator adapters have unspecified results after a panic | Mark Rousskov | -0/+5 | |
| 2019-12-22 | Format the world | Mark Rousskov | -30/+36 | |
| 2019-10-30 | doc: reword iter module example and mention other methods | Lzu Tao | -21/+14 | |
| 2019-07-29 | Use internal iteration in the Sum and Product impls of Result and Option | Tim Vermeulen | -1/+1 | |
| 2019-07-27 | Refactoring use commun code between option, result and accum | Stargateur | -1/+1 | |
| 2019-05-27 | Updated the Iterator docs with information about overriding methods. | Christian | -0/+5 | |
| 2019-04-27 | Stabilize Iterator::copied in 1.36.0. | Mazdak Farrokhzad | -1/+1 | |
| 2019-04-18 | libcore => 2018 | Taiki Endo | -1/+1 | |
| 2019-03-18 | Replaced self-reflective explicit types with clearer `Self` or `Self::…` ↵ | Vincent Esche | -1/+1 | |
| in stdlib docs | ||||
| 2019-02-19 | Stabilize iter::from_fn | Simon Sapin | -1/+1 | |
| FCP: https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234 | ||||
| 2019-02-19 | Stabilize iter::successors | Simon Sapin | -1/+3 | |
| FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773 | ||||
| 2019-02-01 | Rename iter::unfold to iter::from_fn and remove explicit state | Simon Sapin | -1/+1 | |
| This API is unstable. CC https://github.com/rust-lang/rust/issues/55977#issuecomment-459657195 | ||||
| 2019-01-22 | Don't expose ZipImpl to Iterator | Clar Fon | -1/+0 | |
| 2019-01-22 | Don't expose FlattenCompat to Iterator | Clar Fon | -1/+1 | |
| 2019-01-22 | Don't expose ChainState to Iterator | Clar Fon | -1/+1 | |
| 2019-01-22 | Move TrustedRandomAccess into Zip module | Clar Fon | -0/+1 | |
| 2019-01-22 | Move core::iter iterator.rs to traits module | Clar Fon | -2/+1 | |
| 2019-01-22 | Move core::iter adapters to adapters.rs | Clar Fon | -2769/+18 | |
| 2019-01-15 | Rollup merge of #57579 - stjepang:once-with, r=SimonSapin | Mazdak Farrokhzad | -0/+2 | |
| Add core::iter::once_with() Functions `iter::once()` and `iter::repeat()` construct iterators from values. The latter has the lazy variant `iter::repeat_with()`, but the former doesn't. This PR therefore adds `iter::once_with()`. Another way to think of `iter::once_with()` is that it's a function that converts `FnOnce() -> T` into `Iterator<Item = T>`. If this seems like a reasonable addition, I'll open a tracking issue and update the `#[feature(...)]` attributes. | ||||
| 2019-01-13 | Fix intradoc link and update issue number | Stjepan Glavina | -1/+1 | |
| 2019-01-13 | Add core::iter::once_with | Stjepan Glavina | -0/+2 | |
| 2019-01-13 | Change #[must_use] message of Iterator in documentation | Taiki Endo | -1/+1 | |
| 2019-01-13 | Change #[must_use] message of Iterator | Taiki Endo | -21/+21 | |
| 2018-12-26 | Auto merge of #56534 - xfix:copied, r=@SimonSapin | bors | -0/+100 | |
| Add unstable Iterator::copied() Initially suggested at https://github.com/bluss/rust-itertools/pull/289, however the maintainers of itertools suggested this may be better of in a standard library. The intent of `copied` is to avoid accidentally cloning iterator elements after doing a code refactoring which causes a structure to be no longer `Copy`. This is a relatively common pattern, as it can be seen by calling `rg --pcre2 '[.]map[(][|](?:(\w+)[|] [*]\1|&(\w+)[|] \2)[)]'` on Rust main repository. Additionally, many uses of `cloned` actually want to simply `Copy`, and changing something to be no longer copyable may introduce unnoticeable performance penalty. Also, this makes sense because the standard library includes `[T].copy_from_slice` to pair with `[T].clone_from_slice`. This also adds `Option::copied`, because it makes sense to pair it with `Iterator::copied`. I don't think this feature is particularly important, but it makes sense to update `Option` along with `Iterator` for consistency. | ||||
| 2018-12-26 | Add a tracking issue for Iterator::copied | Konrad Borowski | -6/+6 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-23 | Merge branch 'master' into copied | Konrad Borowski | -23/+26 | |
| 2018-12-20 | Add DoubleEndedIterator::nth_back | Clar Fon | -0/+6 | |
| 2018-12-17 | Remove `<Cycle as Iterator>::try_fold` override | Shotaro Yamada | -13/+0 | |
| It was a incorrect optimization. | ||||
| 2018-12-09 | Don't call size_hint of underlying iterator needlessly | Shotaro Yamada | -2/+10 | |
| 2018-12-09 | Resolve FIXME and cleanup | Shotaro Yamada | -20/+7 | |
| 2018-12-09 | Override Cycle::try_fold | Shotaro Yamada | -0/+13 | |
| name old ns/iter new ns/iter diff ns/iter diff % speedup iter::bench_cycle_take_ref_sum 927,152 927,194 42 0.00% x 1.00 iter::bench_cycle_take_sum 938,129 603,492 -334,637 -35.67% x 1.55 | ||||
| 2018-12-05 | Avoid calling clone in DoubleEndedIterator implementation of Copied | Konrad Borowski | -2/+2 | |
| 2018-12-05 | Use inner iterator may_have_side_effect for Cloned | Konrad Borowski | -1/+3 | |
| Previous implementation wasn't correct, as an inner iterator could have had side effects. | ||||
| 2018-12-05 | Copy may_have_side_effect from I for Copied<I> | Konrad Borowski | -1/+3 | |
| 2018-12-05 | Use copied method instead of cloned in Copied::next_back() | Konrad Borowski | -1/+1 | |
| 2018-12-05 | Add unstable Iterator::copied() | Konrad Borowski | -0/+98 | |
| 2018-11-20 | Capitalize | Simon Sapin | -2/+2 | |
| 2018-11-20 | Add tracking issue for unfold and successors | Simon Sapin | -1/+1 | |
| 2018-11-20 | Add std::iter::successors | Simon Sapin | -1/+1 | |
| 2018-11-20 | Add std::iter::unfold | Simon Sapin | -0/+2 | |
| 2018-11-18 | revert | Артём Павлов [Artyom Pavlov] | -75/+7 | |
