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
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
Implementors
Loading content...