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