pub enum Quant {
Any,
All,
None,
Empty,
CountGe(usize),
}Expand description
How many related rows have to satisfy the inner predicate.
All over an empty relation is true: the vacuous reading, and the one SQL gives for
NOT EXISTS (… AND NOT p). It is the choice that surprises people, which is why None
sits beside it: “no unconfirmed lodging” and “every lodging confirmed” differ exactly for
the rows with nothing related, and an app usually means the former.
Variants§
Any
All
None
Empty
No related rows at all: one NOT EXISTS over the foreign-key index.
CountGe(usize)
At least n related rows: a correlated COUNT over the same index.
Trait Implementations§
impl Copy for Quant
impl Eq for Quant
impl StructuralPartialEq for Quant
Auto Trait Implementations§
impl Freeze for Quant
impl RefUnwindSafe for Quant
impl Send for Quant
impl Sync for Quant
impl Unpin for Quant
impl UnsafeUnpin for Quant
impl UnwindSafe for Quant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more