Struct arenatree::Node [−][src]
A single node in the tree. Has a reference to the first child and the next sibling.
Fields
child: Option<NodeId>
sibling: Option<NodeId>
Methods
impl Node
[src]
impl Node
pub fn with_child<T: Into<Option<NodeId>>>(child: T) -> Self
[src]
pub fn with_child<T: Into<Option<NodeId>>>(child: T) -> Self
Convenience function for creating a node with children and no siblings
Trait Implementations
impl Clone for Node
[src]
impl Clone for Node
fn clone(&self) -> Node
[src]
fn clone(&self) -> Node
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 Copy for Node
[src]
impl Copy for Node
impl Debug for Node
[src]
impl Debug for Node
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Node
[src]
impl Default for Node