pub enum Pattern<'tree> {
Show 25 variants
Apply(Box<Apply<'tree>>),
As(Box<As<'tree>>),
Constructor(Box<Constructor<'tree>>),
Infix(Box<Infix<'tree>>),
Irrefutable(Box<Irrefutable<'tree>>),
List(Box<List<'tree>>),
Literal(Box<Literal<'tree>>),
Negation(Box<Negation<'tree>>),
Parens(Box<Parens<'tree>>),
PrefixId(Box<PrefixId<'tree>>),
PrefixTuple(Box<PrefixTuple<'tree>>),
PrefixUnboxedSum(Box<PrefixUnboxedSum<'tree>>),
PrefixUnboxedTuple(Box<PrefixUnboxedTuple<'tree>>),
Qualified(Box<Qualified<'tree>>),
Quasiquote(Box<Quasiquote<'tree>>),
Record(Box<Record<'tree>>),
Splice(Box<Splice<'tree>>),
Strict(Box<Strict<'tree>>),
Tuple(Box<Tuple<'tree>>),
UnboxedSum(Box<UnboxedSum<'tree>>),
UnboxedTuple(Box<UnboxedTuple<'tree>>),
UnboxedUnit(Box<UnboxedUnit<'tree>>),
Unit(Box<Unit<'tree>>),
Variable(Box<Variable<'tree>>),
Wildcard(Box<Wildcard<'tree>>),
}Variants§
Apply(Box<Apply<'tree>>)
As(Box<As<'tree>>)
Constructor(Box<Constructor<'tree>>)
Infix(Box<Infix<'tree>>)
Irrefutable(Box<Irrefutable<'tree>>)
List(Box<List<'tree>>)
Literal(Box<Literal<'tree>>)
Negation(Box<Negation<'tree>>)
Parens(Box<Parens<'tree>>)
PrefixId(Box<PrefixId<'tree>>)
PrefixTuple(Box<PrefixTuple<'tree>>)
PrefixUnboxedSum(Box<PrefixUnboxedSum<'tree>>)
PrefixUnboxedTuple(Box<PrefixUnboxedTuple<'tree>>)
Qualified(Box<Qualified<'tree>>)
Quasiquote(Box<Quasiquote<'tree>>)
Record(Box<Record<'tree>>)
Splice(Box<Splice<'tree>>)
Strict(Box<Strict<'tree>>)
Tuple(Box<Tuple<'tree>>)
UnboxedSum(Box<UnboxedSum<'tree>>)
UnboxedTuple(Box<UnboxedTuple<'tree>>)
UnboxedUnit(Box<UnboxedUnit<'tree>>)
Unit(Box<Unit<'tree>>)
Variable(Box<Variable<'tree>>)
Wildcard(Box<Wildcard<'tree>>)
Trait Implementations§
impl<'tree> Eq for Pattern<'tree>
impl<'tree> StructuralPartialEq for Pattern<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Pattern<'tree>
impl<'tree> RefUnwindSafe for Pattern<'tree>
impl<'tree> Send for Pattern<'tree>
impl<'tree> Sync for Pattern<'tree>
impl<'tree> Unpin for Pattern<'tree>
impl<'tree> UnsafeUnpin for Pattern<'tree>
impl<'tree> UnwindSafe for Pattern<'tree>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more