Struct indextree::Node
[−]
[src]
pub struct Node<T> { pub data: T, // some fields omitted }
A node within a particular Arena
Fields
data: T
The actual data which will be stored within the tree
Methods
impl<T> Node<T>
[src]
fn parent(&self) -> Option<NodeId>
[src]
Return the ID of the parent node, unless this node is the root of the tree.
fn first_child(&self) -> Option<NodeId>
[src]
Return the ID of the first child of this node, unless it has no child.
fn last_child(&self) -> Option<NodeId>
[src]
Return the ID of the last child of this node, unless it has no child.
fn previous_sibling(&self) -> Option<NodeId>
[src]
Return the ID of the previous sibling of this node, unless it is a first child.
fn next_sibling(&self) -> Option<NodeId>
[src]
Return the ID of the previous sibling of this node, unless it is a first child.
Trait Implementations
impl<T: Clone> Clone for Node<T>
[src]
fn clone(&self) -> Node<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more