/// Immutable slice iterator
///
+/// This struct is created by the [`iter`] method on [slices].
+///
/// # Examples
///
/// Basic usage:
/// println!("{}", element);
/// }
/// ```
+///
+/// [`iter`]: ../../std/primitive.slice.html#method.iter
+/// [slices]: ../../std/primitive.slice.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Iter<'a, T: 'a> {
ptr: *const T,
/// Mutable slice iterator.
///
+/// This struct is created by the [`iter_mut`] method on [slices].
+///
/// # Examples
///
/// Basic usage:
/// // We now have "[2, 3, 4]":
/// println!("{:?}", slice);
/// ```
+///
+/// [`iter_mut`]: ../../std/primitive.slice.html#method.iter_mut
+/// [slices]: ../../std/primitive.slice.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct IterMut<'a, T: 'a> {
ptr: *mut T,