Trait gearley::forest::Forest [] [src]

pub trait Forest<'a> {
    type NodeRef: Copy + 'a;
    type NodeBuilder: NodeBuilder<NodeRef = Self::NodeRef>;
    type LeafValue: 'a;
    fn build(&'a self, num_children: usize) -> Self::NodeBuilder;
    fn leaf(
        &'a self,
        token: Symbol,
        pos: u32,
        value: Self::LeafValue
    ) -> Self::NodeRef; fn nulling(&'a self, token: Symbol) -> Self::NodeRef; }

Associated Types

Reference to a node.

Required Methods

Implementors