pub trait ComparisonOperand<'a, V, L>: Sized{
type SQLType: DataType;
type Nullable: Nullability;
type Aggregate: AggregateKind;
type Sources;
// Required method
fn into_comparison_sql(self) -> SQL<'a, V>;
}Expand description
A value that can be the right-hand side of a comparison with L.
Every Expr whose SQL type is compatible with L’s is an operand. The
table macros also implement this trait for a column’s custom Rust type
(such as an enum or JSON struct) against that one column, so
eq(table.custom, value) works without making the custom type an
expression everywhere.
Required Associated Types§
Sourcetype Nullable: Nullability
type Nullable: Nullability
Whether the operand can be NULL.
Sourcetype Aggregate: AggregateKind
type Aggregate: AggregateKind
Whether the operand is an aggregate.
Sourcetype Sources
type Sources
Tables the operand reads; see ExprSources::Sources.
Required Methods§
Sourcefn into_comparison_sql(self) -> SQL<'a, V>
fn into_comparison_sql(self) -> SQL<'a, V>
Renders the operand.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".