pub enum ForInit {
None,
Expr(ExprId),
Decl(DeclId),
}Expand description
The first clause of a for statement.
Variants§
None
Nothing was written.
Expr(ExprId)
An expression.
Decl(DeclId)
A declaration, which C99 allowed and which scopes to the loop.
Trait Implementations§
impl Copy for ForInit
impl Eq for ForInit
impl StructuralPartialEq for ForInit
Auto Trait Implementations§
impl Freeze for ForInit
impl RefUnwindSafe for ForInit
impl Send for ForInit
impl Sync for ForInit
impl Unpin for ForInit
impl UnsafeUnpin for ForInit
impl UnwindSafe for ForInit
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