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 more