pub struct BinaryOp<L: Expression, R: Expression> {
pub op: BinaryOpType,
pub lhs: L,
pub rhs: R,
}Fields§
§op: BinaryOpType§lhs: L§rhs: RTrait Implementations§
Source§impl<L: Debug + Expression, R: Debug + Expression> Debug for BinaryOp<L, R>
impl<L: Debug + Expression, R: Debug + Expression> Debug for BinaryOp<L, R>
Source§impl<L: Expression, R: Expression> Expression for BinaryOp<L, R>
impl<L: Expression, R: Expression> Expression for BinaryOp<L, R>
Source§fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut String,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut String, )
Serialize the expression into the output string using the sql writer.
Source§fn is_ordered(&self) -> bool
fn is_ordered(&self) -> bool
Whether this expression carries ordering information.
Source§impl<L: Expression, R: Expression> OpPrecedence for BinaryOp<L, R>
impl<L: Expression, R: Expression> OpPrecedence for BinaryOp<L, R>
Source§fn precedence(&self, writer: &dyn SqlWriter) -> i32
fn precedence(&self, writer: &dyn SqlWriter) -> i32
Lower numbers bind weaker, writers parenthesize when child precedence <= operator precedence.
Auto Trait Implementations§
impl<L, R> Freeze for BinaryOp<L, R>
impl<L, R> RefUnwindSafe for BinaryOp<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for BinaryOp<L, R>
impl<L, R> Sync for BinaryOp<L, R>
impl<L, R> Unpin for BinaryOp<L, R>
impl<L, R> UnwindSafe for BinaryOp<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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