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
sourceimpl VarPattern
impl VarPattern
Trait Implementations
sourceimpl Clone for VarPattern
impl Clone for VarPattern
sourcefn clone(&self) -> VarPattern
fn clone(&self) -> VarPattern
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 VarPattern
impl Debug for VarPattern
sourceimpl Display for VarPattern
impl Display for VarPattern
sourceimpl Hash for VarPattern
impl Hash for VarPattern
sourceimpl Locational for VarPattern
impl Locational for VarPattern
sourceimpl NestedDisplay for VarPattern
impl NestedDisplay for VarPattern
sourceimpl PartialEq<VarPattern> for VarPattern
impl PartialEq<VarPattern> for VarPattern
sourcefn eq(&self, other: &VarPattern) -> bool
fn eq(&self, other: &VarPattern) -> bool
impl Eq for VarPattern
impl StructuralEq for VarPattern
impl StructuralPartialEq for VarPattern
Auto Trait Implementations
impl RefUnwindSafe for VarPattern
impl !Send for VarPattern
impl !Sync for VarPattern
impl Unpin for VarPattern
impl UnwindSafe for VarPattern
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