pub enum Pattern<'tree> {
Show 18 variants
Blank(Span),
LiteralPattern(Box<LiteralPattern<'tree>>),
CapturedPattern(Box<CapturedPattern<'tree>>),
ConstBlock(Box<ConstBlock<'tree>>),
GenericPattern(Box<GenericPattern<'tree>>),
Identifier(Box<Identifier<'tree>>),
MacroInvocation(Box<MacroInvocation<'tree>>),
MutPattern(Box<MutPattern<'tree>>),
OrPattern(Box<OrPattern<'tree>>),
RangePattern(Box<RangePattern<'tree>>),
RefPattern(Box<RefPattern<'tree>>),
ReferencePattern(Box<ReferencePattern<'tree>>),
RemainingFieldPattern(Box<RemainingFieldPattern<'tree>>),
ScopedIdentifier(Box<ScopedIdentifier<'tree>>),
SlicePattern(Box<SlicePattern<'tree>>),
StructPattern(Box<StructPattern<'tree>>),
TuplePattern(Box<TuplePattern<'tree>>),
TupleStructPattern(Box<TupleStructPattern<'tree>>),
}Variants§
Blank(Span)
LiteralPattern(Box<LiteralPattern<'tree>>)
CapturedPattern(Box<CapturedPattern<'tree>>)
ConstBlock(Box<ConstBlock<'tree>>)
GenericPattern(Box<GenericPattern<'tree>>)
Identifier(Box<Identifier<'tree>>)
MacroInvocation(Box<MacroInvocation<'tree>>)
MutPattern(Box<MutPattern<'tree>>)
OrPattern(Box<OrPattern<'tree>>)
RangePattern(Box<RangePattern<'tree>>)
RefPattern(Box<RefPattern<'tree>>)
ReferencePattern(Box<ReferencePattern<'tree>>)
RemainingFieldPattern(Box<RemainingFieldPattern<'tree>>)
ScopedIdentifier(Box<ScopedIdentifier<'tree>>)
SlicePattern(Box<SlicePattern<'tree>>)
StructPattern(Box<StructPattern<'tree>>)
TuplePattern(Box<TuplePattern<'tree>>)
TupleStructPattern(Box<TupleStructPattern<'tree>>)
Trait Implementations§
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