Struct panini::Bocage
[−]
[src]
pub struct Bocage<'a, 'f, 'g, T, V> where
'a: 'f,
T: 'f + Copy,
V: 'a, { /* fields omitted */ }
Methods
impl<'a, 'f, 'g, T, V> Bocage<'a, 'f, 'g, T, V> where
T: Copy,
[src]
T: Copy,
fn new(grammar: &'g InternalGrammar) -> Bocage<'a, 'f, 'g, T, V>
fn initialize(&'f self)
Trait Implementations
impl<'a, 'f, 'g, T, V> Forest<'f> for Bocage<'a, 'f, 'g, T, V> where
T: Copy,
[src]
T: Copy,
type NodeRef = &'f Node<'a, 'f, T, V>
Reference to a node.
type NodeBuilder = SumBuilder<'a, 'f, T, V>
type LeafValue = T
fn build(
&'f self,
num_products: usize
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeBuilder
&'f self,
num_products: usize
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeBuilder
fn leaf(
&'f self,
token: Symbol,
_pos: u32,
value: <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::LeafValue
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeRef
&'f self,
token: Symbol,
_pos: u32,
value: <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::LeafValue
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeRef
fn nulling(
&'f self,
token: Symbol
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeRef
&'f self,
token: Symbol
) -> <Bocage<'a, 'f, 'g, T, V> as Forest<'f>>::NodeRef