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§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for ConstBinOp
impl NestedDisplay for ConstBinOp
source§impl PartialEq<ConstBinOp> for ConstBinOp
impl PartialEq<ConstBinOp> 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 ==
.