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