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 ==
.impl Eq for ConstDefBody
impl StructuralEq for ConstDefBody
impl StructuralPartialEq for ConstDefBody
Auto Trait Implementations§
impl RefUnwindSafe for ConstDefBody
impl Send for ConstDefBody
impl Sync for ConstDefBody
impl Unpin for ConstDefBody
impl UnwindSafe for ConstDefBody
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