Crate lists

source · []
Expand description

Lists

Library containing various implementations of list-like data-structures such as Vectors, LinkedLists, and more. All data-structures follow a sequence-like structure and can be represented like an Array.

Linked Lists

pub struct SinglyLinkedList { .. } // One-directional `LinkedList`.
pub struct DoublyLinkedList { .. } // Two-directional `LinkedList`.

Re-exports

pub use linked::SinglyLinkedList;
pub use linked::DoublyLinkedList;

Modules

Linked

Macros

Shorthand syntax for creating a DoublyLinkedList. Time complexity is O(1).

Shorthand syntax for creating a SinglyLinkedList. Time complexity is O(n).