Trait kaktus::PushPop [] [src]

pub trait PushPop<T> where Self: Sized {
    type This;
    fn push(&self, val: T) -> Self::This;
    fn pop(&self) -> Option<Self::This>;
    fn peek(&self) -> Option<&T>;
    fn walk(&self) -> StackIterator<T>;

    fn depth(&self) -> usize { ... }
}

Associated Types

Required Methods

Provided Methods

Implementors