algo-rs 0.1.0

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

pub trait Queue<T> {
    fn push_back(&mut self, e: T);
    fn pop_front(&mut self) -> Option<T>;
    fn front(&self) -> Option<&T>;
    fn is_empty(&self) -> bool;
}