pub enum Pattern<'tree> {
Attribute(Box<Attribute<'tree>>),
Identifier(Box<Identifier<'tree>>),
ListPattern(Box<ListPattern<'tree>>),
ListSplatPattern(Box<ListSplatPattern<'tree>>),
Subscript(Box<Subscript<'tree>>),
TuplePattern(Box<TuplePattern<'tree>>),
}Variants§
Attribute(Box<Attribute<'tree>>)
Identifier(Box<Identifier<'tree>>)
ListPattern(Box<ListPattern<'tree>>)
ListSplatPattern(Box<ListSplatPattern<'tree>>)
Subscript(Box<Subscript<'tree>>)
TuplePattern(Box<TuplePattern<'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