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§
- Circular
List - 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.
- Cursor
Mut - Cursor with mutability on the list.
- Into
Iter - Owned list iterator.
- Iter
- Immutable list iterator
- IterMut
- Mutable list iterator
- Rev
- Immutable list iterator with the direction inverted.