Skip to main content

Predicate

Trait Predicate 

Source
pub trait Predicate {
    // Required methods
    fn eval(&self, row: &Row) -> bool;
    fn columns(&self) -> Vec<&ColumnRef>;
    fn tables(&self) -> Vec<&str>;
}
Expand description

A predicate that can be evaluated against rows.

Required Methods§

Source

fn eval(&self, row: &Row) -> bool

Evaluates the predicate against a row.

Source

fn columns(&self) -> Vec<&ColumnRef>

Returns the columns referenced by this predicate.

Source

fn tables(&self) -> Vec<&str>

Returns the tables referenced by this predicate.

Implementors§