Struct erg_parser::ast::ParamRecordAttr
source · pub struct ParamRecordAttr {
pub lhs: Identifier,
pub rhs: NonDefaultParamSignature,
}
Fields§
§lhs: Identifier
§rhs: NonDefaultParamSignature
Implementations§
source§impl ParamRecordAttr
impl ParamRecordAttr
pub const fn new(lhs: Identifier, rhs: NonDefaultParamSignature) -> Self
Trait Implementations§
source§impl Clone for ParamRecordAttr
impl Clone for ParamRecordAttr
source§fn clone(&self) -> ParamRecordAttr
fn clone(&self) -> ParamRecordAttr
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 ParamRecordAttr
impl Debug for ParamRecordAttr
source§impl Display for ParamRecordAttr
impl Display for ParamRecordAttr
source§impl Hash for ParamRecordAttr
impl Hash for ParamRecordAttr
source§impl Locational for ParamRecordAttr
impl Locational for ParamRecordAttr
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 ParamRecordAttr
impl NestedDisplay for ParamRecordAttr
source§impl PartialEq<ParamRecordAttr> for ParamRecordAttr
impl PartialEq<ParamRecordAttr> for ParamRecordAttr
source§fn eq(&self, other: &ParamRecordAttr) -> bool
fn eq(&self, other: &ParamRecordAttr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.