pub struct ForLoop {
pub variable: String,
pub items: Vec<Expr>,
pub body: Vec<Stmt>,
}Expand description
For loop over items.
Fields§
§variable: String§items: Vec<Expr>Items to iterate over. Each is evaluated, then word-split for iteration.
body: Vec<Stmt>Trait Implementations§
impl StructuralPartialEq for ForLoop
Auto Trait Implementations§
impl Freeze for ForLoop
impl RefUnwindSafe for ForLoop
impl Send for ForLoop
impl Sync for ForLoop
impl Unpin for ForLoop
impl UnwindSafe for ForLoop
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