a vector-based implementation of the stack data type
| 1 | // a vector-based implementation of the stack data type |
| 2 | pub struct Stack<T> { |
| 3 | vec: Vec<T>, |
| 4 | } |
| 5 | |
| 6 | impl<T> Stack<T> { |
| 7 | // a constructor that returns an instance of Stack<T> backed by an empty Vec<T> |
nothing calls this directly
no outgoing calls
no test coverage detected