pub struct Compiler {
pub allocator: Bump,
/* private fields */
}
Fields§
§allocator: Bump
Implementations§
source§impl Compiler
impl Compiler
pub fn get_symbol(&self, s: &str) -> Symbol
pub fn resolve_symbol(&self, s: Symbol) -> &str
source§impl Compiler
impl Compiler
pub fn compile<'a>( &mut self, options: &'a CompileOptions<'a>, grammar: &'a Grammar<'a> ) -> CompileResult<Syntax>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Compiler
impl Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl !UnwindSafe for Compiler
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