Struct topia::Node
[−]
[src]
pub struct Node<T> { /* fields omitted */ }
Methods
impl<T> Node<T>
[src]
fn new(value: T) -> Node<T>
fn len(&self) -> usize
fn push_back(&mut self, value: Node<T>)
fn push_front(&mut self, value: Node<T>)
fn insert(&mut self, index: usize, value: Node<T>)
fn pop_front(&mut self) -> Option<Node<T>>
fn pop_back(&mut self) -> Option<Node<T>>
fn remove(&mut self, index: usize) -> Option<Node<T>>
fn get(&self, index: usize) -> Option<&Node<T>>
fn get_mut(&mut self, index: usize) -> Option<&mut Node<T>>
fn front(&self) -> Option<&Node<T>>
fn front_mut(&mut self) -> Option<&mut Node<T>>
fn back(&self) -> Option<&Node<T>>
fn back_mut(&mut self) -> Option<&mut Node<T>>
fn children(&self) -> Iter<Node<T>>
fn children_mut(&mut self) -> IterMut<Node<T>>
fn traverse<F>(&self, f: F) where
F: Fn(&Node<T>),
F: Fn(&Node<T>),
Pre-order traversal with the given function.
fn traverse_mut<F>(&mut self, f: F) where
F: FnMut(&mut Node<T>),
F: FnMut(&mut Node<T>),
Post-order traversal with the given function.
Trait Implementations
impl<T: Debug> Debug for Node<T>
[src]
impl<T: Clone> Clone for Node<T>
[src]
fn clone(&self) -> Node<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: Hash> Hash for Node<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> Deref for Node<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for Node<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value