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> Send for ExprCompiler<'a>
impl<'a> !Sync 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
Source§impl<T> CompactArcDrop for T
impl<T> CompactArcDrop for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more