File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
library/std/src/collections Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 172172//!
173173//! ## Iterators
174174//!
175- //! Iterators are a powerful and robust mechanism used throughout Rust's
175+ //! [Iterators][crate::iter]
176+ //! are a powerful and robust mechanism used throughout Rust's
176177//! standard libraries. Iterators provide a sequence of values in a generic,
177178//! safe, efficient and convenient way. The contents of an iterator are usually
178179//! *lazily* evaluated, so that only the values that are actually needed are
252253//!
253254//! Several other collection methods also return iterators to yield a sequence
254255//! of results but avoid allocating an entire collection to store the result in.
255- //! This provides maximum flexibility as `collect` or `extend` can be called to
256+ //! This provides maximum flexibility as
257+ //! [`collect`][crate::iter::Iterator::collect] or
258+ //! [`extend`][crate::iter::Extend::extend] can be called to
256259//! "pipe" the sequence into any collection if desired. Otherwise, the sequence
257260//! can be looped over with a `for` loop. The iterator can also be discarded
258261//! after partial use, preventing the computation of the unused items.
You can’t perform that action at this time.
0 commit comments