pub struct ForStmt {
pub span: Span,
pub initializer: Option<Expr>,
pub condition: Option<Expr>,
pub update: Option<Expr>,
pub body: Box<Stmt>,
}Expand description
One for statement.
Fields§
§span: SpanSource span covering the whole statement.
initializer: Option<Expr>Optional initializer expression.
condition: Option<Expr>Optional loop condition.
update: Option<Expr>Optional update expression.
body: Box<Stmt>Loop body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForStmt
impl<'de> Deserialize<'de> for ForStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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