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 !Send for ForHead
impl !Sync for ForHead
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 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,
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