pub struct BinaryExpr {
pub left: Box<Expr>,
pub op: BinaryOp,
pub right: Box<Expr>,
}Expand description
Binary expression
Fields§
§left: Box<Expr>Left-hand side of the expression
op: BinaryOpThe comparison operator
right: Box<Expr>Right-hand side of the expression
Trait Implementations§
Source§impl Clone for BinaryExpr
impl Clone for BinaryExpr
Source§fn clone(&self) -> BinaryExpr
fn clone(&self) -> BinaryExpr
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 moreSource§impl Debug for BinaryExpr
impl Debug for BinaryExpr
Source§impl Display for BinaryExpr
impl Display for BinaryExpr
Source§impl ExprTrait for BinaryExpr
impl ExprTrait for BinaryExpr
Source§fn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>
fn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>
Get the data type of this expression, given the schema of the input
Source§fn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>
fn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>
Determine whether this expression is nullable, given the schema of the input
Source§fn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>
fn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>
Evaluate an expression against a Tuple
Source§impl PartialEq for BinaryExpr
impl PartialEq for BinaryExpr
Source§fn eq(&self, other: &BinaryExpr) -> bool
fn eq(&self, other: &BinaryExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BinaryExpr
impl StructuralPartialEq for BinaryExpr
Auto Trait Implementations§
impl Freeze for BinaryExpr
impl RefUnwindSafe for BinaryExpr
impl Send for BinaryExpr
impl Sync for BinaryExpr
impl Unpin for BinaryExpr
impl UnsafeUnpin for BinaryExpr
impl UnwindSafe for BinaryExpr
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.