|
36 | 36 | //!
|
37 | 37 | //! ## Structs
|
38 | 38 | //!
|
39 |
| -//! There are several structs that are useful for slices, such as `Iter`, which |
| 39 | +//! There are several structs that are useful for slices, such as [`Iter`], which |
40 | 40 | //! represents iteration over a slice.
|
41 | 41 | //!
|
42 | 42 | //! ## Trait Implementations
|
43 | 43 | //!
|
44 | 44 | //! There are several implementations of common traits for slices. Some examples
|
45 | 45 | //! include:
|
46 | 46 | //!
|
47 |
| -//! * `Clone` |
48 |
| -//! * `Eq`, `Ord` - for slices whose element type are `Eq` or `Ord`. |
49 |
| -//! * `Hash` - for slices whose element type is `Hash` |
| 47 | +//! * [`Clone`] |
| 48 | +//! * [`Eq`], [`Ord`] - for slices whose element type are [`Eq`] or [`Ord`]. |
| 49 | +//! * [`Hash`] - for slices whose element type is [`Hash`]. |
50 | 50 | //!
|
51 | 51 | //! ## Iteration
|
52 | 52 | //!
|
|
73 | 73 | //! the element type of the slice is `i32`, the element type of the iterator is
|
74 | 74 | //! `&mut i32`.
|
75 | 75 | //!
|
76 |
| -//! * `.iter()` and `.iter_mut()` are the explicit methods to return the default |
| 76 | +//! * [`.iter()`] and [`.iter_mut()`] are the explicit methods to return the default |
77 | 77 | //! iterators.
|
78 |
| -//! * Further methods that return iterators are `.split()`, `.splitn()`, |
79 |
| -//! `.chunks()`, `.windows()` and more. |
| 78 | +//! * Further methods that return iterators are [`.split()`], [`.splitn()`], |
| 79 | +//! [`.chunks()`], [`.windows()`] and more. |
80 | 80 | //!
|
81 | 81 | //! *[See also the slice primitive type](../../std/primitive.slice.html).*
|
| 82 | +//! |
| 83 | +//! [`Clone`]: ../../std/clone/trait.Clone.html |
| 84 | +//! [`Eq`]: ../../std/cmp/trait.Eq.html |
| 85 | +//! [`Ord`]: ../../std/cmp/trait.Ord.html |
| 86 | +//! [`Iter`]: struct.Iter.html |
| 87 | +//! [`Hash`]: ../../std/hash/trait.Hash.html |
| 88 | +//! [`.iter()`]: ../../std/primitive.slice.html#method.iter |
| 89 | +//! [`.iter_mut()`]: ../../std/primitive.slice.html#method.iter_mut |
| 90 | +//! [`.split()`]: ../../std/primitive.slice.html#method.split |
| 91 | +//! [`.splitn()`]: ../../std/primitive.slice.html#method.splitn |
| 92 | +//! [`.chunks()`]: ../../std/primitive.slice.html#method.chunks |
| 93 | +//! [`.windows()`]: ../../std/primitive.slice.html#method.windows |
82 | 94 | #![stable(feature = "rust1", since = "1.0.0")]
|
83 | 95 |
|
84 | 96 | // Many of the usings in this module are only used in the test configuration.
|
|
0 commit comments