pub struct Exists<D, Req> { /* private fields */ }Expand description
EXISTS (<subquery>). Not an Expr, because unlike every other
expression this one is dialect-pinned: the subquery it holds was
capability-checked against its own dialect, and any CTE it binds is
already rendered in that dialect. It is therefore a condition and only a
condition — .filter(..) it, or predicate(..) it into a collection,
onto a query of the same dialect. A Predicate carries D for this
reason: discharging a condition gives up the tables it named, never the
dialect it was built for.
Trait Implementations§
impl<D, Scope: Superset<Req, Idxs>, Req, Idxs> Condition<D, Scope, Idxs> for Exists<D, Req>
Auto Trait Implementations§
impl<D, Req> Freeze for Exists<D, Req>
impl<D, Req> RefUnwindSafe for Exists<D, Req>
impl<D, Req> Send for Exists<D, Req>
impl<D, Req> Sync for Exists<D, Req>
impl<D, Req> Unpin for Exists<D, Req>
impl<D, Req> UnsafeUnpin for Exists<D, Req>
impl<D, Req> UnwindSafe for Exists<D, Req>
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