Add IntoIterator intra doc link to various collections

This commit is contained in:
est31 2021-09-16 13:54:05 +02:00
parent a8a829deb4
commit 372711906b
7 changed files with 14 additions and 7 deletions

View file

@ -1259,9 +1259,10 @@ impl<T> FusedIterator for Iter<'_, T> {}
/// An owning iterator over the elements of a `BinaryHeap`. /// An owning iterator over the elements of a `BinaryHeap`.
/// ///
/// This `struct` is created by [`BinaryHeap::into_iter()`] /// This `struct` is created by [`BinaryHeap::into_iter()`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: BinaryHeap::into_iter /// [`into_iter`]: BinaryHeap::into_iter
/// [`IntoIterator`]: core::iter::IntoIterator
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone)] #[derive(Clone)]
pub struct IntoIter<T> { pub struct IntoIter<T> {

View file

@ -326,9 +326,10 @@ impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for IterMut<'_, K, V> {
/// An owning iterator over the entries of a `BTreeMap`. /// An owning iterator over the entries of a `BTreeMap`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`BTreeMap`] /// This `struct` is created by the [`into_iter`] method on [`BTreeMap`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: IntoIterator::into_iter /// [`into_iter`]: IntoIterator::into_iter
/// [`IntoIterator`]: core::iter::IntoIterator
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter<K, V> { pub struct IntoIter<K, V> {
range: LazyLeafRange<marker::Dying, K, V>, range: LazyLeafRange<marker::Dying, K, V>,

View file

@ -107,9 +107,10 @@ impl<T: fmt::Debug> fmt::Debug for Iter<'_, T> {
/// An owning iterator over the items of a `BTreeSet`. /// An owning iterator over the items of a `BTreeSet`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`BTreeSet`] /// This `struct` is created by the [`into_iter`] method on [`BTreeSet`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: BTreeSet#method.into_iter /// [`into_iter`]: BTreeSet#method.into_iter
/// [`IntoIterator`]: core::iter::IntoIterator
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[derive(Debug)] #[derive(Debug)]
pub struct IntoIter<T> { pub struct IntoIter<T> {

View file

@ -124,9 +124,10 @@ impl<T: fmt::Debug> fmt::Debug for IterMut<'_, T> {
/// An owning iterator over the elements of a `LinkedList`. /// An owning iterator over the elements of a `LinkedList`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`LinkedList`] /// This `struct` is created by the [`into_iter`] method on [`LinkedList`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: LinkedList::into_iter /// [`into_iter`]: LinkedList::into_iter
/// [`IntoIterator`]: core::iter::IntoIterator
#[derive(Clone)] #[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter<T> { pub struct IntoIter<T> {

View file

@ -8,9 +8,10 @@ use super::VecDeque;
/// An owning iterator over the elements of a `VecDeque`. /// An owning iterator over the elements of a `VecDeque`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`VecDeque`] /// This `struct` is created by the [`into_iter`] method on [`VecDeque`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: VecDeque::into_iter /// [`into_iter`]: VecDeque::into_iter
/// [`IntoIterator`]: core::iter::IntoIterator
#[derive(Clone)] #[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter< pub struct IntoIter<

View file

@ -1257,9 +1257,10 @@ impl<'a, K, V> IterMut<'a, K, V> {
/// An owning iterator over the entries of a `HashMap`. /// An owning iterator over the entries of a `HashMap`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`HashMap`] /// This `struct` is created by the [`into_iter`] method on [`HashMap`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: IntoIterator::into_iter /// [`into_iter`]: IntoIterator::into_iter
/// [`IntoIterator`]: crate::iter::IntoIterator
/// ///
/// # Example /// # Example
/// ///

View file

@ -1237,9 +1237,10 @@ pub struct Iter<'a, K: 'a> {
/// An owning iterator over the items of a `HashSet`. /// An owning iterator over the items of a `HashSet`.
/// ///
/// This `struct` is created by the [`into_iter`] method on [`HashSet`] /// This `struct` is created by the [`into_iter`] method on [`HashSet`]
/// (provided by the `IntoIterator` trait). See its documentation for more. /// (provided by the [`IntoIterator`] trait). See its documentation for more.
/// ///
/// [`into_iter`]: IntoIterator::into_iter /// [`into_iter`]: IntoIterator::into_iter
/// [`IntoIterator`]: crate::iter::IntoIterator
/// ///
/// # Examples /// # Examples
/// ///