Trait data_structure_traits::StackImmut [−][src]
pub trait StackImmut<T>: Sized { fn push(&self, _: T) -> Self; fn pop(&self) -> Self; fn top(&self) -> Option<&T>; fn pop_and_top(&self) -> (Self, Option<&T>) { ... } }
pub trait StackImmut<T>: Sized { fn push(&self, _: T) -> Self; fn pop(&self) -> Self; fn top(&self) -> Option<&T>; fn pop_and_top(&self) -> (Self, Option<&T>) { ... } }
fn pop_and_top(&self) -> (Self, Option<&T>)