Struct rsdb::Stack
[−]
[src]
pub struct Stack<T> { /* fields omitted */ }
Methods
impl<T> Stack<T>
[src]
fn from_raw(from: *const Node<T>) -> Stack<T>
fn from_vec(from: Vec<T>) -> Stack<T>
fn push(&self, inner: T)
fn pop(&self) -> Option<T>
fn pop_all(&self) -> Vec<T>
fn cap(
&self,
old: *const Node<T>,
new: T
) -> Result<*const Node<T>, *const Node<T>>
&self,
old: *const Node<T>,
new: T
) -> Result<*const Node<T>, *const Node<T>>
compare and push
fn cas(
&self,
old: *const Node<T>,
new: *const Node<T>
) -> Result<*const Node<T>, *const Node<T>>
&self,
old: *const Node<T>,
new: *const Node<T>
) -> Result<*const Node<T>, *const Node<T>>
attempt consolidation
fn iter_at_head(&self) -> (*const Node<T>, StackIter<T>)
fn head(&self) -> *const Node<T>
fn len(&self) -> usize
Trait Implementations
impl<T: Clone> Clone for Stack<T>
[src]
fn clone(&self) -> Stack<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Default for Stack<T>
[src]
impl<T: Debug> Debug for Stack<T>
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.