Struct arenatree::NodeId [−][src]
pub struct NodeId(pub usize);
An AST node ID for lookups in the arena
Trait Implementations
impl Clone for NodeId
[src]
impl Clone for NodeId
fn clone(&self) -> NodeId
[src]
fn clone(&self) -> NodeId
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 NodeId
[src]
impl Copy for NodeId
impl Debug for NodeId
[src]
impl Debug for NodeId
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 PartialEq for NodeId
[src]
impl PartialEq for NodeId
fn eq(&self, other: &NodeId) -> bool
[src]
fn eq(&self, other: &NodeId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NodeId) -> bool
[src]
fn ne(&self, other: &NodeId) -> bool
This method tests for !=
.
impl Eq for NodeId
[src]
impl Eq for NodeId
impl<'a, T> Index<NodeId> for Arena<'a, T>
[src]
impl<'a, T> Index<NodeId> for Arena<'a, T>
type Output = T
The returned type after indexing.
fn index(&self, index: NodeId) -> &Self::Output
[src]
fn index(&self, index: NodeId) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl<'a, T> IndexMut<NodeId> for Arena<'a, T>
[src]
impl<'a, T> IndexMut<NodeId> for Arena<'a, T>