Struct okane_core::repl::expr::BinaryOpExpr
source · pub struct BinaryOpExpr {
pub op: BinaryOp,
pub lhs: Box<Expr>,
pub rhs: Box<Expr>,
}Expand description
Represents binary operator expression.
Fields§
§op: BinaryOp§lhs: Box<Expr>§rhs: Box<Expr>Trait Implementations§
source§impl Clone for BinaryOpExpr
impl Clone for BinaryOpExpr
source§fn clone(&self) -> BinaryOpExpr
fn clone(&self) -> BinaryOpExpr
Returns a copy 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 BinaryOpExpr
impl Debug for BinaryOpExpr
source§impl PartialEq for BinaryOpExpr
impl PartialEq for BinaryOpExpr
source§fn eq(&self, other: &BinaryOpExpr) -> bool
fn eq(&self, other: &BinaryOpExpr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BinaryOpExpr
impl StructuralEq for BinaryOpExpr
impl StructuralPartialEq for BinaryOpExpr
Auto Trait Implementations§
impl RefUnwindSafe for BinaryOpExpr
impl Send for BinaryOpExpr
impl Sync for BinaryOpExpr
impl Unpin for BinaryOpExpr
impl UnwindSafe for BinaryOpExpr
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