pub struct ForStmt {
pub variable: String,
pub iterable: Expression,
pub body: Block,
pub span: Span,
}Expand description
For loop statement
Fields§
§variable: StringLoop variable name
iterable: ExpressionExpression to iterate over
body: BlockLoop body
span: SpanSource location
Trait Implementations§
impl StructuralPartialEq for ForStmt
Auto Trait Implementations§
impl Freeze for ForStmt
impl RefUnwindSafe for ForStmt
impl Send for ForStmt
impl Sync for ForStmt
impl Unpin for ForStmt
impl UnwindSafe for ForStmt
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