Skip to main content

FColExt

Trait FColExt 

Source
pub trait FColExt<T> {
    // Required methods
    fn eq_f(&self, expr: FExpr) -> Predicate<T>;
    fn ne_f(&self, expr: FExpr) -> Predicate<T>;
}
Expand description

Extension trait that adds eq_f / ne_f to column handles so a column can be compared against an F-expression (another column or arithmetic).

Implemented for the integer and foreign-key column types. String and datetime columns gain this too when a consumer surfaces the need.

Required Methods§

Source

fn eq_f(&self, expr: FExpr) -> Predicate<T>

WHERE <col> = <expr>.

Source

fn ne_f(&self, expr: FExpr) -> Predicate<T>

WHERE <col> <> <expr>.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> FColExt<T> for ForeignKeyCol<T>

Source§

impl<T> FColExt<T> for IntCol<T>

Source§

impl<T> FColExt<T> for StrCol<T>