pub struct CompiledFilter { /* private fields */ }Expand description
A compiled filter, ready for execution.
Implementations§
Source§impl CompiledFilter
impl CompiledFilter
Sourcepub fn new(
expr: FilterExpr,
schema: Arc<FilterSchema>,
functions: Arc<FunctionRegistry>,
) -> Self
pub fn new( expr: FilterExpr, schema: Arc<FilterSchema>, functions: Arc<FunctionRegistry>, ) -> Self
Create a new compiled filter from an expression, schema, and function registry.
Sourcepub fn execute(&self, context: &FilterContext) -> Result<bool, WirerustError>
pub fn execute(&self, context: &FilterContext) -> Result<bool, WirerustError>
Execute the filter against a context.
Sourcepub fn schema(&self) -> &FilterSchema
pub fn schema(&self) -> &FilterSchema
Get a reference to the schema used by this filter.
Sourcepub fn functions(&self) -> &FunctionRegistry
pub fn functions(&self) -> &FunctionRegistry
Get a reference to the function registry used by this filter.
Auto Trait Implementations§
impl Freeze for CompiledFilter
impl !RefUnwindSafe for CompiledFilter
impl Send for CompiledFilter
impl Sync for CompiledFilter
impl Unpin for CompiledFilter
impl !UnwindSafe for CompiledFilter
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