Skip to main content

Pushdown

Trait Pushdown 

Source
pub trait Pushdown: Send + Sync {
    // Required methods
    fn view(
        &self,
        filters: &[FilterStatement],
        sort: &[(String, bool)],
        reversed: bool,
    ) -> Option<PushedView>;
    fn notes(&self) -> Vec<Note>;
    fn as_any(&self) -> &dyn Any;
}
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§

Source

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.

Source

fn notes(&self) -> Vec<Note>

What reading the source has found to say.

Source

fn as_any(&self) -> &dyn Any

The source itself, for its tests.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§