[−][src]Struct ccl::stack::ConcurrentStack
ConcurrentStack is a general purpose threadsafe and lockfree FILO/LIFO stack.
Methods
impl<T> ConcurrentStack<T>
[src]
pub fn new() -> Self
[src]
Create a new, empty stack.
pub fn push(&self, data: T)
[src]
Push an element to the top of the stack.
pub fn pop(&self) -> Option<T>
[src]
Pop the uppermost element of the stack.
ⓘImportant traits for StackIter<'a, T>pub fn pop_iter(&self) -> StackIter<T>
[src]
ⓘImportant traits for StackIter<'a, T>
Create an iterator over all elements in the stack.
pub fn push_with_guard(&self, data: T, guard: &Guard)
[src]
Push an element with an existing guard.
pub fn pop_with_guard(&self, guard: &Guard) -> Option<T>
[src]
Pop an element with an existing guard.
Trait Implementations
impl<T> Default for ConcurrentStack<T>
[src]
impl<T> Drop for ConcurrentStack<T>
[src]
Auto Trait Implementations
impl<T> Send for ConcurrentStack<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Sync for ConcurrentStack<T> where
T: Send + Sync,
T: Send + Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,