Skip to main content

Crate cdll

Crate cdll 

Source
Expand description

Circular doubly linked list.

§Basic usage

let mut list = list![1, 2, 3];

list.push_back(4);
assert_eq!(list, list![1, 2, 3, 4]);
assert_eq!(list.pop_front(), Some(1));

Macros§

list
Create a list with provided elements.

Structs§

CircularList
A circular doubly linked list with owned nodes. It is similar to the standard library LinkedList (the API is almost the same) exept it is circular (i.e. the last element is linked to the first).
Cursor
Cursor.
CursorMut
Cursor with mutability on the list.
IntoIter
Owned list iterator.
Iter
Immutable list iterator
IterMut
Mutable list iterator
Rev
Immutable list iterator with the direction inverted.