We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 029ace4 commit c414628Copy full SHA for c414628
src/libcore/option.rs
@@ -894,9 +894,15 @@ impl<A> ExactSizeIterator for Item<A> {}
894
impl<A> FusedIterator for Item<A> {}
895
unsafe impl<A> TrustedLen for Item<A> {}
896
897
-/// An iterator over a reference of the contained item in an [`Option`].
+/// An iterator over a reference to the [`Some`] variant of an [`Option`].
898
+///
899
+/// The iterator yields one value if the [`Option`] is a [`Some`] variant, otherwise none.
900
901
+/// This `struct` is created by [`Option::iter`] function.
902
///
903
/// [`Option`]: enum.Option.html
904
+/// [`Some`]: enum.Option.html#variant.Some
905
+/// [`Option::iter`]: enum.Option.html#method.iter
906
#[stable(feature = "rust1", since = "1.0.0")]
907
#[derive(Debug)]
908
pub struct Iter<'a, A: 'a> { inner: Item<&'a A> }
0 commit comments