We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0fdfbf + f5ea620 commit a2b927cCopy full SHA for a2b927c
src/libcollections/vec_deque.rs
@@ -38,6 +38,10 @@ const MINIMUM_CAPACITY: usize = 1; // 2 - 1
38
39
/// `VecDeque` is a growable ring buffer, which can be used as a
40
/// double-ended queue efficiently.
41
+///
42
+/// The "default" usage of this type as a queue is to use `push_back` to add to the queue, and
43
+/// `pop_front` to remove from the queue. `extend` and `append` push onto the back in this manner,
44
+/// and iterating over `VecDeque` goes front to back.
45
#[stable(feature = "rust1", since = "1.0.0")]
46
pub struct VecDeque<T> {
47
// tail and head are pointers into the buffer. Tail always points
0 commit comments