Struct rinutil::idtree::Node [−][src]
pub struct Node<T> { pub data: T, // some fields omitted }
Fields
data: T
Methods
impl<T> Node<T>
[src]
impl<T> Node<T>
impl<T> Node<T>
[src]
impl<T> Node<T>
pub fn parent(&self) -> Option<NodeId>
[src]
pub fn parent(&self) -> Option<NodeId>
Return the ID of the parent node, unless this node is the root of the tree.
pub fn first_child(&self) -> Option<NodeId>
[src]
pub fn first_child(&self) -> Option<NodeId>
Return the ID of the first child of this node, unless it has no child.
pub fn last_child(&self) -> Option<NodeId>
[src]
pub fn last_child(&self) -> Option<NodeId>
Return the ID of the last child of this node, unless it has no child.
pub fn previous_sibling(&self) -> Option<NodeId>
[src]
pub fn previous_sibling(&self) -> Option<NodeId>
Return the ID of the previous sibling of this node, unless it is a first child.
pub fn next_sibling(&self) -> Option<NodeId>
[src]
pub fn next_sibling(&self) -> Option<NodeId>
Return the ID of the previous sibling of this node, unless it is a first child.
Trait Implementations
impl<T> Deref for Node<T>
[src]
impl<T> Deref for Node<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for Node<T>
[src]
impl<T> DerefMut for Node<T>
impl<T: Clone> Clone for Node<T>
[src]
impl<T: Clone> Clone for Node<T>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> From<Node<T>> for NodeId
[src]
impl<T> From<Node<T>> for NodeId