pub trait Comparison<'a, C, QS, DB>: ValueSqlType {
// Required method
fn compare(
column: C,
operator: FilterOperator,
value: Value,
) -> Option<BoxedCondition<'a, QS, DB>>;
}Expand description
How a column whose non-null SQL type is Self is compared with a value:
<, =, >, and for text the LIKE operators.
Implemented per SQL type, so the code generated for a column is the same
call whatever its type: condition picks the implementation by the
column’s SQL type.
Required Methods§
Sourcefn compare(
column: C,
operator: FilterOperator,
value: Value,
) -> Option<BoxedCondition<'a, QS, DB>>
fn compare( column: C, operator: FilterOperator, value: Value, ) -> Option<BoxedCondition<'a, QS, DB>>
column operator value, the value bound with the column’s type; None
if the value is of another type, or the operator does not apply.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".