pub struct BinaryExpression {
pub left: Box<Expression>,
pub operator: BinaryOp,
pub right: Box<Expression>,
pub location: SourceLocation,
}Fields§
§left: Box<Expression>§operator: BinaryOp§right: Box<Expression>§location: SourceLocationImplementations§
Source§impl BinaryExpression
impl BinaryExpression
Sourcepub fn is_null_check(&self) -> bool
pub fn is_null_check(&self) -> bool
Check if this is a NULL comparison (x != NULL, x == NULL, etc.)
Sourcepub fn extract_compared_variable(&self) -> Option<&str>
pub fn extract_compared_variable(&self) -> Option<&str>
Extract the variable being compared in expressions like x != 0, x > 0, 0 < x, x != NULL, NULL != x
Trait Implementations§
Source§impl Clone for BinaryExpression
impl Clone for BinaryExpression
Source§impl Debug for BinaryExpression
impl Debug for BinaryExpression
Auto Trait Implementations§
impl Freeze for BinaryExpression
impl RefUnwindSafe for BinaryExpression
impl Send for BinaryExpression
impl Sync for BinaryExpression
impl Unpin for BinaryExpression
impl UnsafeUnpin for BinaryExpression
impl UnwindSafe for BinaryExpression
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