pub trait ConditionList<'a, V: SQLParam>: Sealed {
type Nullable: Nullability;
type Aggregate: AggregateKind;
}Expand description
A list of SQL conditions combined under a single logical operator.
Implemented for tuples whose every element is a boolean expression — or an
Option of one — for arities 1..=8, extended to 16 by the col16
feature. The associated markers fold across the elements
exactly as chained and calls would: the list is nullable if
any element is nullable, and aggregate if any element is aggregate.
A bare tuple additionally is a condition (it implements
Expr) up to arity 8. Past that, combine through all or
any, or nest tuples — the result is the same flat AND.
This trait is sealed; the crate provides every implementation.
Required Associated Types§
Sourcetype Nullable: Nullability
type Nullable: Nullability
Nullability folded across every element.
Sourcetype Aggregate: AggregateKind
type Aggregate: AggregateKind
Aggregate kind folded across every element.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".