Enum erg_parser::ast::VarPattern
source · pub enum VarPattern {
Discard(Token),
Ident(Identifier),
Array(VarArrayPattern),
Tuple(VarTuplePattern),
Record(VarRecordPattern),
DataPack(VarDataPackPattern),
}
Variants§
Discard(Token)
Ident(Identifier)
Array(VarArrayPattern)
e.g. [x, y, z]
of [x, y, z] = [1, 2, 3]
Tuple(VarTuplePattern)
e.g. (x, y, z)
of (x, y, z) = (1, 2, 3)
Record(VarRecordPattern)
DataPack(VarDataPackPattern)
Implementations§
source§impl VarPattern
impl VarPattern
Trait Implementations§
source§impl Clone for VarPattern
impl Clone for VarPattern
source§fn clone(&self) -> VarPattern
fn clone(&self) -> VarPattern
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