pub struct Generator { /* private fields */ }
Implementations§
Source§impl Generator
impl Generator
pub fn new(grammar: &str) -> Result<Self, Box<dyn Error>>
pub fn install(&self, registry: &ParserRegistry) -> Result<(), Box<dyn Error>>
pub fn parser(&self, id: &str) -> Option<ParserHandle>
pub fn iter(&self) -> impl Iterator<Item = (&str, ParserHandle, Option<&str>)>
pub fn registry() -> ParserRegistry
Auto Trait Implementations§
impl Freeze for Generator
impl !RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl !UnwindSafe for Generator
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