Struct coco::stack::Stack [] [src]

pub struct Stack<T> { /* fields omitted */ }

A lock-free stack.

It can be used with multiple producers and multiple consumers at the same time.

Methods

impl<T> Stack<T>
[src]

Returns a new, empty stack.

Returns true if the stack is empty.

Pushes a new value onto the stack.

Attemps to pop an value from the stack.

Returns None if the stack is empty.

Trait Implementations

impl<T: Send> Send for Stack<T>
[src]

impl<T: Send> Sync for Stack<T>
[src]

impl<T> Drop for Stack<T>
[src]

A method called when the value goes out of scope. Read more