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
impl<'a, 'f, 'g, T, V> Forest<'f> for Bocage<'a, 'f, 'g, T, V> where T: Copy
impl<'a> Forest<'a> for NullForest
impl<'f, F> Forest<'f> for &'f F where F: Forest<'f>