Struct parol::build::GrammarGenerator
source · pub struct GrammarGenerator<'l> { /* private fields */ }
Expand description
Represents in-process grammar generation.
Most of the time you will want to use Builder::generate_parser to bypass this completely.
This is an advanced API, and unless stated otherwise, all its methods are unstable (see module docs).
The lifetime parameter 'l
refers to the lifetime of the optional listener.
Implementations§
source§impl GrammarGenerator<'_>
impl GrammarGenerator<'_>
sourcepub fn generate_parser(&mut self) -> Result<()>
pub fn generate_parser(&mut self) -> Result<()>
Generate the parser, writing it to the pre-configured output files.
Auto Trait Implementations§
impl<'l> Freeze for GrammarGenerator<'l>
impl<'l> !RefUnwindSafe for GrammarGenerator<'l>
impl<'l> !Send for GrammarGenerator<'l>
impl<'l> !Sync for GrammarGenerator<'l>
impl<'l> Unpin for GrammarGenerator<'l>
impl<'l> !UnwindSafe for GrammarGenerator<'l>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more