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