Struct ExprIsNull
pub struct ExprIsNull {
pub expr: Box<Expr>,
pub negated: bool,
}Expand description
Tests whether an expression is null.
Returns true if the expression evaluates to null, or the opposite when
negated is set. The flag makes IS NOT NULL a predicate in its own
right rather than the negation of IS NULL: statement normalization
attaches variant guards to the predicate before expanding the negated
form to not(is_null(..)), so the guards end up outside the negation.
§Examples
is_null(x) // returns `true` if x is null
is_not_null(x) // returns `true` if x is not nullFields§
§expr: Box<Expr>The expression to check for null.
negated: boolWhether the check is IS NOT NULL.
Trait Implementations§
§impl Clone for ExprIsNull
impl Clone for ExprIsNull
§fn clone(&self) -> ExprIsNull
fn clone(&self) -> ExprIsNull
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 ExprIsNull
impl Debug for ExprIsNull
§impl From<ExprIsNull> for Expr
impl From<ExprIsNull> for Expr
§fn from(value: ExprIsNull) -> Expr
fn from(value: ExprIsNull) -> Expr
Converts to this type from the input type.
§impl PartialEq for ExprIsNull
impl PartialEq for ExprIsNull
impl StructuralPartialEq for ExprIsNull
Auto Trait Implementations§
impl Freeze for ExprIsNull
impl RefUnwindSafe for ExprIsNull
impl Send for ExprIsNull
impl Sync for ExprIsNull
impl Unpin for ExprIsNull
impl UnsafeUnpin for ExprIsNull
impl UnwindSafe for ExprIsNull
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