Stacking
stacking is a module containing tools for building stacks in rust
Stack
stacking comes with a Stack builtin.
It only supports pop and push as actions
Examples
use Stack;
let mut stack: = new;
stack.push;
assert_eq!;
This simple example creates a stack, appends 4 to it and pops it off again.
Nodes
stacking also contains a Node.
A Node can be used to build custom stacks or other data structures with specific orders.
Examples
use Node;
let mut n1: = new;
let mut n2: = new;
assert_eq!;
assert_eq!;
This will create two nodes referencing each other to create an order in which after n2 comes n1.