diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-03-22 14:59:38 +0100 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-03-22 14:59:38 +0100 |
| commit | ecf301d987ed944ef96f627757a0fc58608ff1bb (patch) | |
| tree | 4c5117545bb7d19c357f998cd65eac92190c3de5 /src/liballoc/collections | |
| parent | 626fdbce8bd2a6c62ab648129f6cbf8e12c8a239 (diff) | |
| download | rust-ecf301d987ed944ef96f627757a0fc58608ff1bb.tar.gz rust-ecf301d987ed944ef96f627757a0fc58608ff1bb.zip | |
document invariant of `VecDeque::as_(mut)_slice`
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 0ad59d2a20c..b9d91876db3 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -959,6 +959,9 @@ impl<T> VecDeque<T> { /// Returns a pair of slices which contain, in order, the contents of the /// `VecDeque`. /// + /// In case [`make_contiguous`](#method.make_contiguous) was previously called, + /// all elements of the deque are in the first slice and the second slice is empty. + /// /// # Examples /// /// ``` @@ -989,6 +992,9 @@ impl<T> VecDeque<T> { /// Returns a pair of slices which contain, in order, the contents of the /// `VecDeque`. /// + /// In case [`make_contiguous`](#method.make_contiguous) was previously called, + /// all elements of the deque are in the first slice and the second slice is empty. + /// /// # Examples /// /// ``` |
