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

type NodeRef: Copy + 'a

Reference to a node.

type NodeBuilder: NodeBuilder<NodeRef=Self::NodeRef>

type LeafValue: 'a

Required Methods

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

Implementors