Struct indextree::Arena
[−]
[src]
pub struct Arena<T> { /* fields omitted */ }
An Arena
structure containing certain Nodes
Methods
impl<T> Arena<T>
[src]
fn new() -> Arena<T>
Create a new empty Arena
fn new_node(&mut self, data: T) -> NodeId
Create a new node from its associated data.
Trait Implementations
impl<T: Clone> Clone for Arena<T>
[src]
fn clone(&self) -> Arena<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: Debug> Debug for Arena<T>
[src]
impl<T> Index<NodeId> for Arena<T>
[src]
type Output = Node<T>
The returned type after indexing
fn index(&self, node: NodeId) -> &Node<T>
The method for the indexing (container[index]
) operation