Struct sindra::node::Node
[−]
[src]
pub struct Node<T> where
T: Annotated, { pub item: T, pub annotation: Rc<RefCell<T::Annotation>>, }
Abstract syntax tree node structure for heterogeneous tree nodes.
Adds arbitrary tree node annotation to each node.
Fields
item: T
Tree node item.
annotation: Rc<RefCell<T::Annotation>>
Tree node annotation.
Methods
impl<T: Annotated> Node<T>
[src]
Trait Implementations
impl<T: Debug> Debug for Node<T> where
T: Annotated,
T::Annotation: Debug,
[src]
T: Annotated,
T::Annotation: Debug,
impl<T: Clone> Clone for Node<T> where
T: Annotated,
T::Annotation: Clone,
[src]
T: Annotated,
T::Annotation: Clone,
fn clone(&self) -> Node<T>
[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: PartialEq> PartialEq for Node<T> where
T: Annotated,
T::Annotation: PartialEq,
[src]
T: Annotated,
T::Annotation: PartialEq,