about summary refs log tree commit diff
path: root/src/libcore/iter/sources.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-643/+0
2020-04-20Stop accessing module level int consts via crate::<Ty>Linus Färnstrand-1/+0
2020-02-03Remove Copy impl from OnceWithOliver Middleton-1/+1
Iterators typically don't implement `Copy` and this shouldn't be an exception.
2020-02-04Stabilize `core::iter::once_with()`Yuki Okushi-11/+7
2020-01-18Make iter::Empty<T> implement Send and Sync for any TKonrad Borowski-0/+5
2019-12-18Propagate cfg bootstrapMark Rousskov-1/+1
2019-12-13Require stable/unstable annotations for the constness of all stable ↵Oliver Scherer-0/+1
functions with a `const` modifier
2019-11-26Format libcore with rustfmtDavid Tolnay-29/+32
This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-08-12Avoid closures in OnceWith and SuccessorsJosh Stone-5/+5
2019-04-19libcore: deny more...Mazdak Farrokhzad-3/+3
2019-04-18libcore => 2018Taiki Endo-4/+4
2019-03-29Fix OnceWith docstring.Geoffry Song-2/+2
This was incorrectly copypasta'd from RepeatWith.
2019-03-14Update sources.rslukaslueg-4/+2
The current language may be amusing, yet is just imprecise and most especially difficult to understand for someone who speaks English as a foreign language.
2019-02-19Stabilize iter::from_fnSimon Sapin-5/+4
FCP: https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234
2019-02-19Stabilize iter::successorsSimon Sapin-6/+5
FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773
2019-02-06Fix broken grammar in iter::from_fn() docsSebastian Dröge-4/+2
2019-02-01Rename iter::unfold to iter::from_fn and remove explicit stateSimon Sapin-31/+24
This API is unstable. CC https://github.com/rust-lang/rust/issues/55977#issuecomment-459657195
2019-01-14Add another feature(iter_once_with)Stjepan Glavina-0/+2
2019-01-14Add feature(iter_once_with)Stjepan Glavina-0/+2
2019-01-13Fix intradoc link and update issue numberStjepan Glavina-7/+8
2019-01-13Add core::iter::once_withStjepan Glavina-0/+108
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-20CapitalizeSimon Sapin-2/+2
2018-11-20Add tracking issue for unfold and successorsSimon Sapin-9/+9
2018-11-20Add std::iter::successorsSimon Sapin-0/+76
2018-11-20`Copy` is best avoided on iteratorsSimon Sapin-1/+1
2018-11-20Unfold<St, F>: Debug without F: DebugSimon Sapin-1/+10
2018-11-20Add std::iter::unfoldSimon Sapin-0/+76
2018-11-10constify parts of libcore.Mazdak Farrokhzad-1/+1
2018-06-02Stabilize iterator_repeat_withThayne McCombs-19/+7
Fixes #48169
2018-03-03core: Update stability attributes for FusedIteratorUlrik Sverdrup-4/+4
2018-03-03core: Stabilize FusedIteratorUlrik Sverdrup-3/+3
FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate.
2018-02-16core::iter::repeat_with: fix spelling, s/not/noteMazdak Farrokhzad-1/+1
2018-02-13core::iter::repeat_with: fix missing word, see @Pazzaz's reviewMazdak Farrokhzad-1/+1
2018-02-12core::iter::repeat_with: tracking issue is #48169Mazdak Farrokhzad-4/+4
2018-02-12core::iter::repeat_with: document DoubleEndedIterator behaviorMazdak Farrokhzad-0/+6
2018-02-12core::iter::repeat_with: fix doc testsMazdak Farrokhzad-2/+2
2018-02-12core::iter::repeat_with: derive Copy, Clone, DebugMazdak Farrokhzad-0/+1
2018-02-12core::iter::repeat_with: general fixesMazdak Farrokhzad-0/+4
2018-02-12add core::iter::repeat_withMazdak Farrokhzad-0/+104
2018-02-04Implement TrustedLen for Take<Repeat> and Take<RangeFrom>oberien-0/+3
2017-03-13Remove function invokation parens from documentation links.Corey Farwell-11/+11
This was never established as a convention we should follow in the 'More API Documentation Conventions' RFC: https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2016-12-30TrustedLen for Empty and Once.Clar Charr-1/+7
2016-08-24Use `#[prelude_import]` in `libcore`.Jeffrey Seyfried-4/+1
2016-08-18Add a FusedIterator trait.Steven Allen-1/+10
This trait can be used to avoid the overhead of a fuse wrapper when an iterator is already well-behaved. Conforming to: RFC 1581 Closes: #35602
2016-04-18Split core::iter module implementation into partsUlrik Sverdrup-0/+270
split iter.rs into a directory of (implementation private) modules. + mod Adaptor structs - Private fields need to be available both for them and Iterator + iterator (Iterator trait) + traits (FromIterator, traits but Iterator itself) + range (range related) + sources (Repeat, Once, Empty)