Trait concurrency_traits::Stack[][src]

pub trait Stack: TryStack {
    fn push(&self, value: Self::Item);
fn pop(&self) -> Self::Item; }

A stack with pop and push

Required methods

fn push(&self, value: Self::Item)[src]

Pushes an item onto the stack

fn pop(&self) -> Self::Item[src]

Pops an item off the stack

Loading content...

Implementors

impl<T: ?Sized> Stack for T where
    T: Deref,
    T::Target: Stack
[src]

Loading content...