pub trait Filtering {
// Required methods
fn prepare_indicies(
&self,
expression: &Expression,
) -> Result<Vec<usize>, Error>;
fn apply_function(
&self,
expression: &Expression,
) -> Result<Vec<usize>, Error>;
}Expand description
Trait for data sources that can evaluate filter expressions.
Required Methods§
Sourcefn prepare_indicies(&self, expression: &Expression) -> Result<Vec<usize>, Error>
fn prepare_indicies(&self, expression: &Expression) -> Result<Vec<usize>, Error>
Returns row indices matching expression.
Sourcefn apply_function(&self, expression: &Expression) -> Result<Vec<usize>, Error>
fn apply_function(&self, expression: &Expression) -> Result<Vec<usize>, Error>
Returns row indices for function-based expressions (e.g. .len()).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".