pub enum ForInit {
Exprs(Vec<Expr>),
LocalVarDecl(LocalVarDeclStmt),
}Expand description
The initialization part of a for statement.
Variants§
Exprs(Vec<Expr>)
A list of expression statements.
LocalVarDecl(LocalVarDeclStmt)
A local variable declaration.
Trait Implementations§
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