pub enum ForHead {
VarDecl(VarDecl),
Assign(Box<Pattern>),
}Expand description
The left-hand side of a for-in/for-of head.
Variants§
VarDecl(VarDecl)
for (let x of …), including single-declarator declarations.
Assign(Box<Pattern>)
for (x of …), for ([a, b] of …), for (obj.x of …).
Trait Implementations§
impl StructuralPartialEq for ForHead
Auto Trait Implementations§
impl Forget for ForHead
impl Freeze for ForHeadwhere
*const u8 is !null: Freeze,
PhantomData<Declarator>: Freeze,
*const Pattern is !null: Freeze,
PhantomData<Pattern>: Freeze,
impl Move for ForHead
impl RefUnwindSafe for ForHead
impl Send for ForHeadwhere
RawVecInner: Send,
BoxRaw<Expr>: Send,
BoxRaw<RestElement>: Send,
BoxRaw<Pattern>: Send,
BoxRaw<MemberPattern>: Send,
impl Sync for ForHeadwhere
RawVecInner: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<RestElement>: Sync,
BoxRaw<Pattern>: Sync,
BoxRaw<MemberPattern>: Sync,
impl Unpin for ForHead
impl UnsafeUnpin for ForHeadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Declarator>: UnsafeUnpin,
*const Pattern is !null: UnsafeUnpin,
PhantomData<Pattern>: UnsafeUnpin,
impl UnwindSafe for ForHeadwhere
RawVecInner: 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