Struct ExprInSubquery
pub struct ExprInSubquery {
pub expr: Box<Expr>,
pub query: Box<Query>,
pub negated: bool,
}Expand description
Tests whether a value is in the results of a subquery.
Returns true if expr matches any row returned by query, or the
opposite when negated is set. The flag makes NOT IN a predicate in
its own right rather than the negation of IN: statement normalization
attaches variant guards to the predicate before expanding the negated
form to not(in_subquery(..)), so the guards end up outside the
negation.
§Examples
in_subquery(x, select(...)) // returns `true` if `x` is in the subquery results
not_in_subquery(x, select(...)) // returns `true` if `x` is not in the subquery resultsFields§
§expr: Box<Expr>The value to search for.
query: Box<Query>The subquery to search within.
negated: boolWhether the check is NOT IN.
Trait Implementations§
§impl Clone for ExprInSubquery
impl Clone for ExprInSubquery
§fn clone(&self) -> ExprInSubquery
fn clone(&self) -> ExprInSubquery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ExprInSubquery
impl Debug for ExprInSubquery
§impl From<ExprInSubquery> for Expr
impl From<ExprInSubquery> for Expr
§fn from(value: ExprInSubquery) -> Expr
fn from(value: ExprInSubquery) -> Expr
Converts to this type from the input type.
§impl Node for ExprInSubquery
impl Node for ExprInSubquery
§impl PartialEq for ExprInSubquery
impl PartialEq for ExprInSubquery
impl StructuralPartialEq for ExprInSubquery
Auto Trait Implementations§
impl Freeze for ExprInSubquery
impl RefUnwindSafe for ExprInSubquery
impl Send for ExprInSubquery
impl Sync for ExprInSubquery
impl Unpin for ExprInSubquery
impl UnsafeUnpin for ExprInSubquery
impl UnwindSafe for ExprInSubquery
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