Struct lockfree::stack::Stack

source ·
pub struct Stack<T> { /* private fields */ }
Expand description

A lock-free stack. LIFO/FILO semanthics are fully respected.

Implementations

Creates a new empty stack.

Pushes a new value onto the top of the stack.

Pops a single element from the top of the stack.

Extends the stack from a given iterable. All values are pushed.

Creates an iterator over Ts, based on pop operation of the stack.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Creates a value from an iterator. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.