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
sourceimpl Clone for ParamPattern
impl Clone for ParamPattern
sourcefn clone(&self) -> ParamPattern
fn clone(&self) -> ParamPattern
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParamPattern
impl Debug for ParamPattern
sourceimpl Display for ParamPattern
impl Display for ParamPattern
sourceimpl Hash for ParamPattern
impl Hash for ParamPattern
sourceimpl Locational for ParamPattern
impl Locational for ParamPattern
sourceimpl NestedDisplay for ParamPattern
impl NestedDisplay for ParamPattern
sourceimpl PartialEq<ParamPattern> for ParamPattern
impl PartialEq<ParamPattern> for ParamPattern
sourcefn eq(&self, other: &ParamPattern) -> bool
fn eq(&self, other: &ParamPattern) -> bool
impl Eq for ParamPattern
impl StructuralEq for ParamPattern
impl StructuralPartialEq for ParamPattern
Auto Trait Implementations
impl RefUnwindSafe for ParamPattern
impl !Send for ParamPattern
impl !Sync for ParamPattern
impl Unpin for ParamPattern
impl UnwindSafe for ParamPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more