@@ -48,11 +48,11 @@ const MAXIMUM_ZST_CAPACITY: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1)
48
48
/// so that its elements do not wrap, and returns a mutable slice to the
49
49
/// now-contiguous element sequence.
50
50
///
51
- /// [`push_back`]: #method. push_back
52
- /// [`pop_front`]: #method. pop_front
53
- /// [`extend`]: #method. extend
54
- /// [`append`]: #method. append
55
- /// [`make_contiguous`]: #method. make_contiguous
51
+ /// [`push_back`]: VecDeque:: push_back
52
+ /// [`pop_front`]: VecDeque:: pop_front
53
+ /// [`extend`]: VecDeque:: extend
54
+ /// [`append`]: VecDeque:: append
55
+ /// [`make_contiguous`]: VecDeque:: make_contiguous
56
56
#[ cfg_attr( not( test) , rustc_diagnostic_item = "vecdeque_type" ) ]
57
57
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
58
58
pub struct VecDeque < T > {
@@ -640,7 +640,7 @@ impl<T> VecDeque<T> {
640
640
/// assert!(buf.capacity() >= 11);
641
641
/// ```
642
642
///
643
- /// [`reserve`]: #method. reserve
643
+ /// [`reserve`]: VecDeque:: reserve
644
644
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
645
645
pub fn reserve_exact ( & mut self , additional : usize ) {
646
646
self . reserve ( additional) ;
@@ -987,8 +987,10 @@ impl<T> VecDeque<T> {
987
987
/// Returns a pair of slices which contain, in order, the contents of the
988
988
/// `VecDeque`.
989
989
///
990
- /// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
991
- /// of the `VecDeque` will be in the first slice and the second slice will be empty.
990
+ /// If [`make_contiguous`] was previously called, all elements of the
991
+ /// `VecDeque` will be in the first slice and the second slice will be empty.
992
+ ///
993
+ /// [`make_contiguous`]: VecDeque::make_contiguous
992
994
///
993
995
/// # Examples
994
996
///
@@ -1020,8 +1022,10 @@ impl<T> VecDeque<T> {
1020
1022
/// Returns a pair of slices which contain, in order, the contents of the
1021
1023
/// `VecDeque`.
1022
1024
///
1023
- /// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
1024
- /// of the `VecDeque` will be in the first slice and the second slice will be empty.
1025
+ /// If [`make_contiguous`] was previously called, all elements of the
1026
+ /// `VecDeque` will be in the first slice and the second slice will be empty.
1027
+ ///
1028
+ /// [`make_contiguous`]: VecDeque::make_contiguous
1025
1029
///
1026
1030
/// # Examples
1027
1031
///
@@ -2160,15 +2164,20 @@ impl<T> VecDeque<T> {
2160
2164
}
2161
2165
}
2162
2166
2163
- /// Rearranges the internal storage of this deque so it is one contiguous slice, which is then returned.
2167
+ /// Rearranges the internal storage of this deque so it is one contiguous
2168
+ /// slice, which is then returned.
2164
2169
///
2165
- /// This method does not allocate and does not change the order of the inserted elements.
2166
- /// As it returns a mutable slice, this can be used to sort or binary search a deque.
2170
+ /// This method does not allocate and does not change the order of the
2171
+ /// inserted elements. As it returns a mutable slice, this can be used to
2172
+ /// sort or binary search a deque.
2167
2173
///
2168
- /// Once the internal storage is contiguous, the [`as_slices`](#method.as_slices) and
2169
- /// [`as_mut_slices`](#method.as_mut_slices) methods will return the entire contents of the
2174
+ /// Once the internal storage is contiguous, the [`as_slices`] and
2175
+ /// [`as_mut_slices`] methods will return the entire contents of the
2170
2176
/// `VecDeque` in a single slice.
2171
2177
///
2178
+ /// [`as_slices`]: VecDeque::as_slices
2179
+ /// [`as_mut_slices`]: VecDeque::as_mut_slices
2180
+ ///
2172
2181
/// # Examples
2173
2182
///
2174
2183
/// Sorting the content of a deque.
@@ -2495,8 +2504,7 @@ fn count(tail: usize, head: usize, size: usize) -> usize {
2495
2504
/// This `struct` is created by the [`iter`] method on [`VecDeque`]. See its
2496
2505
/// documentation for more.
2497
2506
///
2498
- /// [`iter`]: struct.VecDeque.html#method.iter
2499
- /// [`VecDeque`]: struct.VecDeque.html
2507
+ /// [`iter`]: VecDeque::iter
2500
2508
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2501
2509
pub struct Iter < ' a , T : ' a > {
2502
2510
ring : & ' a [ T ] ,
@@ -2650,8 +2658,7 @@ impl<T> FusedIterator for Iter<'_, T> {}
2650
2658
/// This `struct` is created by the [`iter_mut`] method on [`VecDeque`]. See its
2651
2659
/// documentation for more.
2652
2660
///
2653
- /// [`iter_mut`]: struct.VecDeque.html#method.iter_mut
2654
- /// [`VecDeque`]: struct.VecDeque.html
2661
+ /// [`iter_mut`]: VecDeque::iter_mut
2655
2662
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2656
2663
pub struct IterMut < ' a , T : ' a > {
2657
2664
ring : & ' a mut [ T ] ,
@@ -2756,8 +2763,7 @@ impl<T> FusedIterator for IterMut<'_, T> {}
2756
2763
/// This `struct` is created by the [`into_iter`] method on [`VecDeque`]
2757
2764
/// (provided by the `IntoIterator` trait). See its documentation for more.
2758
2765
///
2759
- /// [`into_iter`]: struct.VecDeque.html#method.into_iter
2760
- /// [`VecDeque`]: struct.VecDeque.html
2766
+ /// [`into_iter`]: VecDeque::into_iter
2761
2767
#[ derive( Clone ) ]
2762
2768
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2763
2769
pub struct IntoIter < T > {
0 commit comments