Struct iodyn::stack::Stack [] [src]

pub struct Stack<T: 'static + Debug + Clone + Eq + Hash>(pub Option<Head<T>>);

Common linked-list

Methods

impl<T: 'static + Debug + Clone + Eq + Hash> Stack<T>
[src]

this is identical to Stack(None)

return a stack with the new item as head

return the top item, if there is one

get the incremental name of this stack, if it's not empty

return the stack without the top item (this is sometimes called tail)

return an iterator over the elements from the top of the stack

Trait Implementations

impl<T: Debug + 'static + Debug + Clone + Eq + Hash> Debug for Stack<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + 'static + Debug + Clone + Eq + Hash> PartialEq for Stack<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq + 'static + Debug + Clone + Eq + Hash> Eq for Stack<T>
[src]

impl<T: Clone + 'static + Debug + Clone + Eq + Hash> Clone for Stack<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Hash + 'static + Debug + Clone + Eq + Hash> Hash for Stack<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more