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 ForHead
impl Move for ForHead
impl RefUnwindSafe for ForHead
impl Send for ForHead
impl Sync for ForHead
impl Unpin for ForHead
impl UnsafeUnpin for ForHead
impl UnwindSafe for ForHead
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