File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2711,6 +2711,9 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> {
2711
2711
impl < T > From < Vec < T > > for VecDeque < T > {
2712
2712
/// Turn a [`Vec<T>`] into a [`VecDeque<T>`].
2713
2713
///
2714
+ /// [`Vec<T>`]: crate::vec::Vec
2715
+ /// [`VecDeque<T>`]: crate::collections::VecDeque
2716
+ ///
2714
2717
/// This avoids reallocating where possible, but the conditions for that are
2715
2718
/// strict, and subject to change, and so shouldn't be relied upon unless the
2716
2719
/// `Vec<T>` came from `From<VecDeque<T>>` and hasn't been reallocated.
@@ -2742,6 +2745,9 @@ impl<T> From<Vec<T>> for VecDeque<T> {
2742
2745
impl < T > From < VecDeque < T > > for Vec < T > {
2743
2746
/// Turn a [`VecDeque<T>`] into a [`Vec<T>`].
2744
2747
///
2748
+ /// [`Vec<T>`]: crate::vec::Vec
2749
+ /// [`VecDeque<T>`]: crate::collections::VecDeque
2750
+ ///
2745
2751
/// This never needs to re-allocate, but does need to do O(n) data movement if
2746
2752
/// the circular buffer doesn't happen to be at the beginning of the allocation.
2747
2753
///
You can’t perform that action at this time.
0 commit comments