Struct ego_tree::NodeId
[−]
[src]
pub struct NodeId<T> { /* fields omitted */ }A node ID.
NodeId acts as a weak reference which is not tied to the lifetime of the Tree that created
it.
With the original Tree, a NodeId can be used to obtain a NodeRef or NodeMut.
Examples
Obtaining an ID
use ego_tree::Tree; let tree = Tree::new('a'); let root_id = tree.root().id();
Obtaining a NodeRef
let root = tree.get(root_id);
Trait Implementations
impl<T> Hash for NodeId<T>[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<T> Copy for NodeId<T>[src]
impl<T> Clone for NodeId<T>[src]
fn clone(&self) -> Self[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
impl<T> Eq for NodeId<T>[src]
impl<T> PartialEq for NodeId<T>[src]
fn eq(&self, other: &Self) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.