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