pub struct ExprCompiler<'a> { /* private fields */ }Expand description
Expression compiler
Implementations§
Source§impl<'a> ExprCompiler<'a>
impl<'a> ExprCompiler<'a>
pub fn new(ctx: &'a CompileContext<'a>) -> Self
Sourcepub fn compile(&self, expr: &Expression) -> Result<Program, CompileError>
pub fn compile(&self, expr: &Expression) -> Result<Program, CompileError>
Compile an expression into a Program
Sourcepub fn compile_filter(&self, expr: &Expression) -> Result<Program, CompileError>
pub fn compile_filter(&self, expr: &Expression) -> Result<Program, CompileError>
Compile an expression for use as a boolean filter
Auto Trait Implementations§
impl<'a> !Freeze for ExprCompiler<'a>
impl<'a> !RefUnwindSafe for ExprCompiler<'a>
impl<'a> !Sync for ExprCompiler<'a>
impl<'a> Send for ExprCompiler<'a>
impl<'a> Unpin for ExprCompiler<'a>
impl<'a> UnsafeUnpin for ExprCompiler<'a>
impl<'a> UnwindSafe for ExprCompiler<'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