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

Tree node item.

Tree node annotation.

Methods

impl<T: Annotated> Node<T>
[src]

[src]

Creates a new tree node with default annotation.

Trait Implementations

impl<T: Debug> Debug for Node<T> where
    T: Annotated,
    T::Annotation: Debug
[src]

[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for Node<T> where
    T: Annotated,
    T::Annotation: Clone
[src]

[src]

Returns a copy of the value. Read more

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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.