pub struct BinaryExpr {
pub op: BinaryOp,
pub lhs: Expr,
pub rhs: Expr,
pub modifier: Option<BinaryModifier>,
}Expand description
Binary expression
Fields§
§op: BinaryOpThe binary operator
lhs: ExprLeft-hand side expression
rhs: ExprRight-hand side expression
modifier: Option<BinaryModifier>Optional modifier (bool, on, ignoring, group_left, group_right)
Implementations§
Source§impl BinaryExpr
impl BinaryExpr
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 · 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 PartialEq for BinaryExpr
impl PartialEq 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 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