algo-rs 0.1.0

Set of data structures and algorithms.
Documentation
1
2
3
4
5
6
7
8
9
pub mod fixed_stack;
pub mod growable_stack;

pub trait Stack<T> {
    fn push(&mut self, item: T);
    fn pop(&mut self) -> Option<T>;
    fn top(&self) -> Option<&T>;
    fn is_empty(&self) -> bool;
}