mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Merge use
s in core::iter
This commit is contained in:
parent
66d6708c3d
commit
b82a76ae3a
@ -1,6 +1,8 @@
|
||||
use crate::iter::{DoubleEndedIterator, FusedIterator, Iterator, TrustedLen};
|
||||
use crate::ops::Try;
|
||||
use crate::usize;
|
||||
use crate::{
|
||||
iter::{DoubleEndedIterator, FusedIterator, Iterator, TrustedLen},
|
||||
ops::Try,
|
||||
usize,
|
||||
};
|
||||
|
||||
/// An iterator that links two iterators together, in a chain.
|
||||
///
|
||||
|
@ -1,8 +1,8 @@
|
||||
use crate::fmt;
|
||||
use crate::ops::Try;
|
||||
|
||||
use super::super::{DoubleEndedIterator, Fuse, FusedIterator, Iterator};
|
||||
use super::Map;
|
||||
use crate::{
|
||||
fmt,
|
||||
iter::{DoubleEndedIterator, Fuse, FusedIterator, Iterator, Map},
|
||||
ops::Try,
|
||||
};
|
||||
|
||||
/// An iterator that maps each element to an iterator, and yields the elements
|
||||
/// of the produced iterators.
|
||||
|
@ -26,23 +26,9 @@ mod take_while;
|
||||
mod zip;
|
||||
|
||||
pub use self::{
|
||||
chain::Chain,
|
||||
cycle::Cycle,
|
||||
enumerate::Enumerate,
|
||||
filter::Filter,
|
||||
filter_map::FilterMap,
|
||||
flatten::FlatMap,
|
||||
fuse::Fuse,
|
||||
inspect::Inspect,
|
||||
map::Map,
|
||||
peekable::Peekable,
|
||||
rev::Rev,
|
||||
scan::Scan,
|
||||
skip::Skip,
|
||||
skip_while::SkipWhile,
|
||||
take::Take,
|
||||
take_while::TakeWhile,
|
||||
zip::Zip,
|
||||
chain::Chain, cycle::Cycle, enumerate::Enumerate, filter::Filter, filter_map::FilterMap,
|
||||
flatten::FlatMap, fuse::Fuse, inspect::Inspect, map::Map, peekable::Peekable, rev::Rev,
|
||||
scan::Scan, skip::Skip, skip_while::SkipWhile, take::Take, take_while::TakeWhile, zip::Zip,
|
||||
};
|
||||
|
||||
#[stable(feature = "iter_cloned", since = "1.1.0")]
|
||||
|
@ -1,9 +1,9 @@
|
||||
use crate::{
|
||||
cmp, iter::FusedIterator, iter::InPlaceIterable, iter::TrustedLen, ops::ControlFlow, ops::Try,
|
||||
cmp,
|
||||
iter::{adapters::SourceIter, FusedIterator, InPlaceIterable, TrustedLen},
|
||||
ops::{ControlFlow, Try},
|
||||
};
|
||||
|
||||
use super::SourceIter;
|
||||
|
||||
/// An iterator that only iterates over the first `n` iterations of `iter`.
|
||||
///
|
||||
/// This `struct` is created by the [`take`] method on [`Iterator`]. See its
|
||||
|
@ -335,15 +335,14 @@ pub use self::sources::{successors, Successors};
|
||||
|
||||
#[stable(feature = "fused", since = "1.26.0")]
|
||||
pub use self::traits::FusedIterator;
|
||||
#[unstable(issue = "none", feature = "inplace_iteration")]
|
||||
pub use self::traits::InPlaceIterable;
|
||||
#[unstable(feature = "trusted_len", issue = "37572")]
|
||||
pub use self::traits::TrustedLen;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use self::traits::{DoubleEndedIterator, Extend, FromIterator, IntoIterator};
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use self::traits::{ExactSizeIterator, Product, Sum};
|
||||
|
||||
#[unstable(issue = "none", feature = "inplace_iteration")]
|
||||
pub use self::traits::InPlaceIterable;
|
||||
pub use self::traits::{
|
||||
DoubleEndedIterator, ExactSizeIterator, Extend, FromIterator, IntoIterator, Product, Sum,
|
||||
};
|
||||
|
||||
#[stable(feature = "iter_cloned", since = "1.1.0")]
|
||||
pub use self::adapters::Cloned;
|
||||
@ -351,21 +350,19 @@ pub use self::adapters::Cloned;
|
||||
pub use self::adapters::Copied;
|
||||
#[stable(feature = "iterator_flatten", since = "1.29.0")]
|
||||
pub use self::adapters::Flatten;
|
||||
|
||||
#[unstable(feature = "iter_map_while", reason = "recently added", issue = "68537")]
|
||||
pub use self::adapters::MapWhile;
|
||||
#[unstable(issue = "none", feature = "inplace_iteration")]
|
||||
#[unstable(feature = "inplace_iteration", issue = "none")]
|
||||
pub use self::adapters::SourceIter;
|
||||
#[stable(feature = "iterator_step_by", since = "1.28.0")]
|
||||
pub use self::adapters::StepBy;
|
||||
#[unstable(feature = "trusted_random_access", issue = "none")]
|
||||
pub use self::adapters::TrustedRandomAccess;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use self::adapters::{Chain, Cycle, Enumerate, Filter, FilterMap, Map, Rev, Zip};
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use self::adapters::{FlatMap, Peekable, Scan, Skip, SkipWhile, Take, TakeWhile};
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use self::adapters::{Fuse, Inspect};
|
||||
pub use self::adapters::{
|
||||
Chain, Cycle, Enumerate, Filter, FilterMap, FlatMap, Fuse, Inspect, Map, Peekable, Rev, Scan,
|
||||
Skip, SkipWhile, Take, TakeWhile, Zip,
|
||||
};
|
||||
|
||||
pub(crate) use self::adapters::process_results;
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
use crate::{fmt, iter::{FusedIterator, TrustedLen}, marker};
|
||||
use crate::{
|
||||
fmt,
|
||||
iter::{FusedIterator, TrustedLen},
|
||||
marker,
|
||||
};
|
||||
|
||||
/// Creates an iterator that yields nothing.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user