pub trait Pushdown: Send + Sync {
// Required methods
fn view(
&self,
filters: &[FilterStatement],
sort: &[(String, bool)],
reversed: bool,
) -> Option<PushedView>;
fn notes(&self) -> Vec<Note>;
}Expand description
A source that filters and sorts. What it notices while reading is said through
Pushdown::notes, which may grow once a pass over the whole source is done.
Required Methods§
Sourcefn view(
&self,
filters: &[FilterStatement],
sort: &[(String, bool)],
reversed: bool,
) -> Option<PushedView>
fn view( &self, filters: &[FilterStatement], sort: &[(String, bool)], reversed: bool, ) -> Option<PushedView>
The view with filters and the sort sort (column, descending; nulls last and
ties in the source’s order), or the source’s order backward when reversed and
there is no sort. None when the source cannot run it, and Polars does.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".