diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 15:10:04 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:17:12 -0700 |
| commit | 8ad7e5481f970ba8d1103b4cc20a71335aba466e (patch) | |
| tree | 1e14a9ea1add5a619f6ba64398627a27e68e36e0 /src/libcollections/dlist.rs | |
| parent | 9a3d04ae7629f6f273643b3a14f106726842be6a (diff) | |
| download | rust-8ad7e5481f970ba8d1103b4cc20a71335aba466e.tar.gz rust-8ad7e5481f970ba8d1103b4cc20a71335aba466e.zip | |
collections: Switch field privacy as necessary
Diffstat (limited to 'src/libcollections/dlist.rs')
| -rw-r--r-- | src/libcollections/dlist.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libcollections/dlist.rs b/src/libcollections/dlist.rs index 570f8811231..1c3a01a355d 100644 --- a/src/libcollections/dlist.rs +++ b/src/libcollections/dlist.rs @@ -32,9 +32,9 @@ use deque::Deque; /// A doubly-linked list. pub struct DList<T> { - priv length: uint, - priv list_head: Link<T>, - priv list_tail: Rawlink<Node<T>>, + length: uint, + list_head: Link<T>, + list_tail: Rawlink<Node<T>>, } type Link<T> = Option<~Node<T>>; @@ -48,9 +48,9 @@ struct Node<T> { /// Double-ended DList iterator pub struct Items<'a, T> { - priv head: &'a Link<T>, - priv tail: Rawlink<Node<T>>, - priv nelem: uint, + head: &'a Link<T>, + tail: Rawlink<Node<T>>, + nelem: uint, } // FIXME #11820: the &'a Option<> of the Link stops clone working. @@ -60,16 +60,16 @@ impl<'a, T> Clone for Items<'a, T> { /// Double-ended mutable DList iterator pub struct MutItems<'a, T> { - priv list: &'a mut DList<T>, - priv head: Rawlink<Node<T>>, - priv tail: Rawlink<Node<T>>, - priv nelem: uint, + list: &'a mut DList<T>, + head: Rawlink<Node<T>>, + tail: Rawlink<Node<T>>, + nelem: uint, } /// DList consuming iterator #[deriving(Clone)] pub struct MoveItems<T> { - priv list: DList<T> + list: DList<T> } /// Rawlink is a type like Option<T> but for holding a raw pointer |
