File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1111//! A doubly-linked list with owned nodes.
1212//!
1313//! The DList allows pushing and popping elements at either end.
14+ //!
15+ //! DList implements the trait Deque. It should be imported with `use
16+ //! extra::container::Deque`.
1417
1518
1619// DList is constructed like a singly-linked list over the field `next`.
@@ -27,7 +30,7 @@ use std::iterator::FromIterator;
2730
2831use container:: Deque ;
2932
30- /// A doubly-linked list
33+ /// A doubly-linked list.
3134pub struct DList < T > {
3235 priv length : uint ,
3336 priv list_head : Link < T > ,
Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111//! A double-ended queue implemented as a circular buffer
12+ //!
13+ //! RingBuf implements the trait Deque. It should be imported with `use
14+ //! extra::container::Deque`.
1215
1316use std:: num;
1417use std:: util;
@@ -21,7 +24,7 @@ use container::Deque;
2124static INITIAL_CAPACITY : uint = 8 u; // 2^3
2225static MINIMUM_CAPACITY : uint = 2 u;
2326
24- # [ allow ( missing_doc ) ]
27+ /// RingBuf is a circular buffer that implements Deque.
2528#[ deriving( Clone ) ]
2629pub struct RingBuf < T > {
2730 priv nelts : uint ,
You can’t perform that action at this time.
0 commit comments