extra: Mention extra::container::Deque trait in doc for RingBuf and DList

This commit is contained in:
blake2-ppc 2013-07-11 16:17:51 +02:00
parent b2b88b326d
commit 0f9b9a5fb7
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,9 @@
//! A doubly-linked list with owned nodes.
//!
//! The DList allows pushing and popping elements at either end.
//!
//! DList implements the trait Deque. It should be imported with `use
//! extra::container::Deque`.
// DList is constructed like a singly-linked list over the field `next`.
@ -27,7 +30,7 @@ use std::iterator::FromIterator;
use container::Deque;
/// A doubly-linked list
/// A doubly-linked list.
pub struct DList<T> {
priv length: uint,
priv list_head: Link<T>,

View File

@ -9,6 +9,9 @@
// except according to those terms.
//! A double-ended queue implemented as a circular buffer
//!
//! RingBuf implements the trait Deque. It should be imported with `use
//! extra::container::Deque`.
use std::num;
use std::util;
@ -21,7 +24,7 @@ use container::Deque;
static INITIAL_CAPACITY: uint = 8u; // 2^3
static MINIMUM_CAPACITY: uint = 2u;
#[allow(missing_doc)]
/// RingBuf is a circular buffer that implements Deque.
#[deriving(Clone)]
pub struct RingBuf<T> {
priv nelts: uint,