pub struct Grammar(pub NonTerminal, pub Vec<Rule>);Expand description
Represents a context-free grammar. Contains a NonTerminal which
represents the starting symbol and a list of Rules.
Tuple Fields
0: NonTerminal1: Vec<Rule>Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Grammar
impl Send for Grammar
impl Sync for Grammar
impl Unpin for Grammar
impl UnwindSafe for Grammar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more