Enum erg_parser::ast::ParamPattern
source · pub enum ParamPattern {
Discard(Token),
VarName(VarName),
Lit(Literal),
Array(ParamArrayPattern),
Tuple(ParamTuplePattern),
Record(ParamRecordPattern),
Ref(VarName),
RefMut(VarName),
}
Expand description
関数定義や無名関数で使えるパターン
Variants§
Discard(Token)
VarName(VarName)
Lit(Literal)
Array(ParamArrayPattern)
Tuple(ParamTuplePattern)
Record(ParamRecordPattern)
Ref(VarName)
RefMut(VarName)
Implementations§
Trait Implementations§
source§impl Clone for ParamPattern
impl Clone for ParamPattern
source§fn clone(&self) -> ParamPattern
fn clone(&self) -> ParamPattern
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