Trait earley::Production
[−]
[src]
pub trait Production<T> { fn get_name(&self) -> &'static str; fn get_tokens(&self) -> &[Token]; fn perform<'a>(&self, result: Vec<Value<'a, T>>) -> T; }
Required Methods
fn get_name(&self) -> &'static str
fn get_tokens(&self) -> &[Token]
fn perform<'a>(&self, result: Vec<Value<'a, T>>) -> T
Trait Implementations
impl<'a, T> PartialEq for &'a Production<T>
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.