pub struct Stack<T> { /* private fields */ }
Expand description
A lock-free stack. LIFO/FILO semanthics are fully respected.
Implementations
sourceimpl<T> Stack<T>
impl<T> Stack<T>
sourcepub fn extend<I>(&self, iterable: I)where
I: IntoIterator<Item = T>,
pub fn extend<I>(&self, iterable: I)where
I: IntoIterator<Item = T>,
Extends the stack from a given iterable. All values are pushed.
Trait Implementations
sourceimpl<T> FromIterator<T> for Stack<T>
impl<T> FromIterator<T> for Stack<T>
sourcefn from_iter<I>(iterable: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iterable: I) -> Selfwhere
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
sourceimpl<'a, T> IntoIterator for &'a Stack<T>
impl<'a, T> IntoIterator for &'a Stack<T>
impl<T> Send for Stack<T>where
T: Send,
impl<T> Sync for Stack<T>where
T: Send,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Stack<T>
impl<T> Unpin for Stack<T>where
T: Unpin,
impl<T> !UnwindSafe for Stack<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more