Struct arenatree::NodeList [−][src]
An easy way to create a list of nodes. The first node will point to the next, etc...
Methods
impl<T: AsMut<Node>> NodeList<T>
[src]
impl<T: AsMut<Node>> NodeList<T>
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new instance
pub fn push(&mut self, node: NodeId, arena: &mut Arena<T>)
[src]
pub fn push(&mut self, node: NodeId, arena: &mut Arena<T>)
Push a new node to this list
pub fn push_all(&mut self, nodes: &[NodeId], arena: &mut Arena<T>)
[src]
pub fn push_all(&mut self, nodes: &[NodeId], arena: &mut Arena<T>)
Push a slice of nodes to this list. Each node will get linked to the next one. If one of the nodes already have siblings, they'll be added as well.
pub fn node(&self) -> Option<NodeId>
[src]
pub fn node(&self) -> Option<NodeId>
Return the first node in the list
Trait Implementations
impl<T: Clone + AsMut<Node>> Clone for NodeList<T>
[src]
impl<T: Clone + AsMut<Node>> Clone for NodeList<T>
fn clone(&self) -> NodeList<T>
[src]
fn clone(&self) -> NodeList<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: Copy + AsMut<Node>> Copy for NodeList<T>
[src]
impl<T: Copy + AsMut<Node>> Copy for NodeList<T>
impl<T: AsMut<Node>> Default for NodeList<T>
[src]
impl<T: AsMut<Node>> Default for NodeList<T>