pub struct Pattern {
pub kind: PatternKind,
pub span: Span,
}Expand description
A binding pattern or assignment target.
Fields§
§kind: PatternKindPattern payload.
span: SpanSource range.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl !Send for Pattern
impl !Sync for Pattern
impl Forget for Pattern
impl Freeze for Patternwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Option<PatternElement>>: Freeze,
*const RestElement is !null: Freeze,
PhantomData<RestElement>: Freeze,
*const Pattern is !null: Freeze,
PhantomData<Pattern>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const MemberPattern is !null: Freeze,
PhantomData<MemberPattern>: Freeze,
impl Move for Pattern
impl RefUnwindSafe for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Patternwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Option<PatternElement>>: UnsafeUnpin,
*const RestElement is !null: UnsafeUnpin,
PhantomData<RestElement>: UnsafeUnpin,
*const Pattern is !null: UnsafeUnpin,
PhantomData<Pattern>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const MemberPattern is !null: UnsafeUnpin,
PhantomData<MemberPattern>: UnsafeUnpin,
impl UnwindSafe for Patternwhere
RawVecInner: UnwindSafe,
Rc<[u8]>: UnwindSafe,
Rc<Vec<u8>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<RestElement>: UnwindSafe,
BoxRaw<Pattern>: UnwindSafe,
BoxRaw<MemberPattern>: UnwindSafe,
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