pub struct ForeachStmt {
pub expr: Expr,
pub key: Option<Expr>,
pub value: Expr,
pub body: Box<Stmt>,
pub uses_alternative: bool,
}Expand description
A foreach loop.
Fields§
§expr: ExprThe iterated expression.
key: Option<Expr>The key target, if any.
value: ExprThe value target.
body: Box<Stmt>The loop body.
uses_alternative: boolWhether the foreach: ... endforeach; syntax is used.
Trait Implementations§
Source§impl Clone for ForeachStmt
impl Clone for ForeachStmt
Source§impl Debug for ForeachStmt
impl Debug for ForeachStmt
Auto Trait Implementations§
impl Freeze for ForeachStmt
impl RefUnwindSafe for ForeachStmt
impl Send for ForeachStmt
impl Sync for ForeachStmt
impl Unpin for ForeachStmt
impl UnsafeUnpin for ForeachStmt
impl UnwindSafe for ForeachStmt
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