pub struct TreiberStack<T> { /* private fields */ }
Expand description

Treiber’s lock-free stack.

Usable with any number of producers and consumers.

Implementations§

Create a new, empty stack.

Push t on top of the stack.

Attempt to pop the top element of the stack.

Returns None if the stack is observed to be empty.

Check if this queue is empty.

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

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.