Module structures::stack
source · Expand description
§Stack
Contains a ‘StackCollection’ trait for implementing a stack, as well as a default implementation of a stack called ‘Stack’. A ‘stack’ is a list of elements that can only add or remove items from the top of the list.
Structs§
- A last-in-first-out collection that allows for adding/removing elements to/from the top.