]> git.lizzy.rs Git - rust.git/blob - library/core/src/iter/sources.rs
Rollup merge of #100559 - nnethercote:parser-simplifications, r=compiler-errors
[rust.git] / library / core / src / iter / sources.rs
1 mod empty;
2 mod from_fn;
3 mod from_generator;
4 mod once;
5 mod once_with;
6 mod repeat;
7 mod repeat_with;
8 mod successors;
9
10 #[stable(feature = "rust1", since = "1.0.0")]
11 pub use self::repeat::{repeat, Repeat};
12
13 #[stable(feature = "iter_empty", since = "1.2.0")]
14 pub use self::empty::{empty, Empty};
15
16 #[stable(feature = "iter_once", since = "1.2.0")]
17 pub use self::once::{once, Once};
18
19 #[stable(feature = "iterator_repeat_with", since = "1.28.0")]
20 pub use self::repeat_with::{repeat_with, RepeatWith};
21
22 #[stable(feature = "iter_from_fn", since = "1.34.0")]
23 pub use self::from_fn::{from_fn, FromFn};
24
25 #[unstable(
26     feature = "iter_from_generator",
27     issue = "43122",
28     reason = "generators are unstable"
29 )]
30 pub use self::from_generator::from_generator;
31
32 #[stable(feature = "iter_successors", since = "1.34.0")]
33 pub use self::successors::{successors, Successors};
34
35 #[stable(feature = "iter_once_with", since = "1.43.0")]
36 pub use self::once_with::{once_with, OnceWith};