Struct endbasic_core::ast::BinaryOpSpan
source · pub struct BinaryOpSpan {
pub lhs: Expr,
pub rhs: Expr,
pub pos: LineCol,
}
Expand description
Components of a binary operation expression.
Fields§
§lhs: Expr
Expression on the left side of the operator.
rhs: Expr
Expression on the right side of the operator.
pos: LineCol
Starting position of the operator.
Trait Implementations§
source§impl Clone for BinaryOpSpan
impl Clone for BinaryOpSpan
source§fn clone(&self) -> BinaryOpSpan
fn clone(&self) -> BinaryOpSpan
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 BinaryOpSpan
impl Debug for BinaryOpSpan
source§impl PartialEq for BinaryOpSpan
impl PartialEq for BinaryOpSpan
source§fn eq(&self, other: &BinaryOpSpan) -> bool
fn eq(&self, other: &BinaryOpSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BinaryOpSpan
Auto Trait Implementations§
impl Freeze for BinaryOpSpan
impl RefUnwindSafe for BinaryOpSpan
impl Send for BinaryOpSpan
impl Sync for BinaryOpSpan
impl Unpin for BinaryOpSpan
impl UnwindSafe for BinaryOpSpan
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)