Trait concurrency_traits::TryStack[][src]

pub trait TryStack {
    type Item;
    fn try_push(&self, value: Self::Item) -> Result<(), Self::Item>;
fn try_pop(&self) -> Option<Self::Item>; }

A Stack with try operations

Associated Types

type Item[src]

The item this stack stores

Loading content...

Required methods

fn try_push(&self, value: Self::Item) -> Result<(), Self::Item>[src]

Tries to push an item onto the stack

fn try_pop(&self) -> Option<Self::Item>[src]

Tries to pop an item off the stack

Loading content...

Implementors

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

type Item = <T::Target as TryStack>::Item

Loading content...