Enum erg_parser::ast::PreDeclTypeSpec
source · pub enum PreDeclTypeSpec {
Simple(SimpleTypeSpec),
Attr {
namespace: Box<Expr>,
t: SimpleTypeSpec,
},
Subscr {
namespace: Box<Expr>,
ident: Identifier,
index: Token,
},
}
Variants§
Trait Implementations§
source§impl Clone for PreDeclTypeSpec
impl Clone for PreDeclTypeSpec
source§fn clone(&self) -> PreDeclTypeSpec
fn clone(&self) -> PreDeclTypeSpec
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 PreDeclTypeSpec
impl Debug for PreDeclTypeSpec
source§impl Display for PreDeclTypeSpec
impl Display for PreDeclTypeSpec
source§impl Hash for PreDeclTypeSpec
impl Hash for PreDeclTypeSpec
source§impl Locational for PreDeclTypeSpec
impl Locational for PreDeclTypeSpec
source§impl PartialEq<PreDeclTypeSpec> for PreDeclTypeSpec
impl PartialEq<PreDeclTypeSpec> for PreDeclTypeSpec
source§fn eq(&self, other: &PreDeclTypeSpec) -> bool
fn eq(&self, other: &PreDeclTypeSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.