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