pub struct BinaryOp {
pub pos: usize,
pub lho: Box<Node>,
pub rho: Box<Node>,
}Expand description
A node with two operands: an infix operator or function application.
Fields§
§pos: usizeByte offset of the operator in the source. For function application, which has no operator, it is the byte offset of the argument.
lho: Box<Node>The left-hand operand.
rho: Box<Node>The right-hand operand.
Trait Implementations§
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnsafeUnpin for BinaryOp
impl UnwindSafe for BinaryOp
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