diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2019-06-20 23:38:58 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2019-07-03 00:05:47 -0700 |
| commit | 38d4c1b2fc6820a48fd1ad7e8e7b68cb71c0bf79 (patch) | |
| tree | eecbb3bd5ed0c09a094073e7b73b21e2af0d83f5 /src/liballoc/collections | |
| parent | dbec74ffa7982de8e066a93969ce70a891d7908b (diff) | |
| download | rust-38d4c1b2fc6820a48fd1ad7e8e7b68cb71c0bf79.tar.gz rust-38d4c1b2fc6820a48fd1ad7e8e7b68cb71c0bf79.zip | |
Fix the links in Vec(Deque)-from-Vec(Deque)
Ok, I can't use `std` in doc-links, only in doc-tests. Try 7...
Diffstat (limited to 'src/liballoc/collections')
| -rw-r--r-- | src/liballoc/collections/vec_deque.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index 71faf672962..0e98dd53ef7 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -2711,6 +2711,9 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> { impl<T> From<Vec<T>> for VecDeque<T> { /// Turn a [`Vec<T>`] into a [`VecDeque<T>`]. /// + /// [`Vec<T>`]: crate::vec::Vec + /// [`VecDeque<T>`]: crate::collections::VecDeque + /// /// This avoids reallocating where possible, but the conditions for that are /// strict, and subject to change, and so shouldn't be relied upon unless the /// `Vec<T>` came from `From<VecDeque<T>>` and hasn't been reallocated. @@ -2742,6 +2745,9 @@ impl<T> From<Vec<T>> for VecDeque<T> { impl<T> From<VecDeque<T>> for Vec<T> { /// Turn a [`VecDeque<T>`] into a [`Vec<T>`]. /// + /// [`Vec<T>`]: crate::vec::Vec + /// [`VecDeque<T>`]: crate::collections::VecDeque + /// /// This never needs to re-allocate, but does need to do O(n) data movement if /// the circular buffer doesn't happen to be at the beginning of the allocation. /// |
