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