Struct CompiledGrammar
pub struct CompiledGrammar {
pub lexer_conf: LexerConf,
pub table: ParseTable,
pub start: Vec<String>,
pub used_files: Vec<ImportedFile>,
}Expand description
The compiled grammar — same downstream shape as json_loader::LoadedGrammar.
Fields§
§lexer_conf: LexerConf§table: ParseTable§start: Vec<String>§used_files: Vec<ImportedFile>Every %imported file this compile loaded, in load order and deduped by
(from_stdlib, path), each carrying the text its loader served. Empty
unless CompileOptions::collect_used_files was set.
Auto Trait Implementations§
impl !Freeze for CompiledGrammar
impl !RefUnwindSafe for CompiledGrammar
impl !UnwindSafe for CompiledGrammar
impl Send for CompiledGrammar
impl Sync for CompiledGrammar
impl Unpin for CompiledGrammar
impl UnsafeUnpin for CompiledGrammar
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