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 new(ctx: &'a CompileCtx<'a>) -> Self
pub fn new(ctx: &'a CompileCtx<'a>) -> Self
Create a new compiler with the given context.
Sourcepub fn compile(ctx: &'a CompileCtx<'a>) -> Result<CompileResult, CompileError>
pub fn compile(ctx: &'a CompileCtx<'a>) -> 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