pub struct Compiler<'a> { /* private fields */ }Expand description
Compiler state for Thompson construction.
Implementations§
Source§impl<'a> Compiler<'a>
impl<'a> Compiler<'a>
Sourcepub fn builder(
interner: &'a Interner,
type_ctx: &'a TypeContext,
symbol_table: &'a SymbolTable,
strings: &'a mut StringTableBuilder,
) -> CompilerBuilder<'a>
pub fn builder( interner: &'a Interner, type_ctx: &'a TypeContext, symbol_table: &'a SymbolTable, strings: &'a mut StringTableBuilder, ) -> CompilerBuilder<'a>
Create a builder for Compiler.
Sourcepub fn compile(
interner: &'a Interner,
type_ctx: &'a TypeContext,
symbol_table: &'a SymbolTable,
strings: &'a mut StringTableBuilder,
node_type_ids: Option<&'a IndexMap<Symbol, NodeTypeId>>,
node_field_ids: Option<&'a IndexMap<Symbol, NodeFieldId>>,
) -> Result<CompileResult, CompileError>
pub fn compile( interner: &'a Interner, type_ctx: &'a TypeContext, symbol_table: &'a SymbolTable, strings: &'a mut StringTableBuilder, node_type_ids: Option<&'a IndexMap<Symbol, NodeTypeId>>, node_field_ids: Option<&'a IndexMap<Symbol, NodeFieldId>>, ) -> Result<CompileResult, CompileError>
Compile all definitions in the query.
Auto Trait Implementations§
impl<'a> Freeze for Compiler<'a>
impl<'a> !RefUnwindSafe for Compiler<'a>
impl<'a> !Send for Compiler<'a>
impl<'a> !Sync for Compiler<'a>
impl<'a> Unpin for Compiler<'a>
impl<'a> !UnwindSafe for Compiler<'a>
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