Struct erg_parser::ast::ConstBinOp
source · pub struct ConstBinOp {
pub op: Token,
pub lhs: Box<ConstExpr>,
pub rhs: Box<ConstExpr>,
}
Fields§
§op: Token
§lhs: Box<ConstExpr>
§rhs: Box<ConstExpr>
Implementations§
Trait Implementations§
source§impl Clone for ConstBinOp
impl Clone for ConstBinOp
source§fn clone(&self) -> ConstBinOp
fn clone(&self) -> ConstBinOp
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 ConstBinOp
impl Debug for ConstBinOp
source§impl Display for ConstBinOp
impl Display for ConstBinOp
source§impl Hash for ConstBinOp
impl Hash for ConstBinOp
source§impl Locational for ConstBinOp
impl Locational for ConstBinOp
source§impl NestedDisplay for ConstBinOp
impl NestedDisplay for ConstBinOp
source§impl PartialEq for ConstBinOp
impl PartialEq for ConstBinOp
source§fn eq(&self, other: &ConstBinOp) -> bool
fn eq(&self, other: &ConstBinOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstBinOp
impl StructuralPartialEq for ConstBinOp
Auto Trait Implementations§
impl Freeze for ConstBinOp
impl RefUnwindSafe for ConstBinOp
impl Send for ConstBinOp
impl Sync for ConstBinOp
impl Unpin for ConstBinOp
impl UnwindSafe for ConstBinOp
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