pub enum ForInit {
VarDecl(VarDecl),
Expr(Box<Expr>),
}Expand description
The init slot of a classic for statement.
Variants§
Trait Implementations§
impl StructuralPartialEq for ForInit
Auto Trait Implementations§
impl Forget for ForInit
impl Freeze for ForInitwhere
*const u8 is !null: Freeze,
PhantomData<Declarator>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
impl Move for ForInit
impl RefUnwindSafe for ForInit
impl Send for ForInitwhere
RawVecInner: Send,
BoxRaw<Expr>: Send,
BoxRaw<RestElement>: Send,
BoxRaw<Pattern>: Send,
BoxRaw<MemberPattern>: Send,
impl Sync for ForInitwhere
RawVecInner: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<RestElement>: Sync,
BoxRaw<Pattern>: Sync,
BoxRaw<MemberPattern>: Sync,
impl Unpin for ForInit
impl UnsafeUnpin for ForInitwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Declarator>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
impl UnwindSafe for ForInitwhere
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