Trait panini::Forest
[−]
[src]
pub trait Forest<'a> where
<Self::NodeBuilder as NodeBuilder>::NodeRef == Self::NodeRef, { type NodeRef: 'a + Copy; type NodeBuilder: NodeBuilder; 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
Required Methods
fn build(&'a self, num_children: usize) -> Self::NodeBuilder
fn leaf(
&'a self,
token: Symbol,
pos: u32,
value: Self::LeafValue
) -> Self::NodeRef
&'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>,