pub struct ForStmt {
pub source: ForSource,
pub body: Vec<Statement>,
pub span: Span,
}Expand description
A traversal statement: for <source> { statements }.
Fields§
§source: ForSourceWhat the traversal iterates.
body: Vec<Statement>The body: one child scope per tuple.
span: SpanWhere the statement appears.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ForStmt
impl Freeze for ForStmtwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LiteralValue>: Freeze,
PhantomData<ProductMeasure>: Freeze,
PhantomData<f64>: Freeze,
PhantomData<Comprehension>: Freeze,
*const Comprehension is !null: Freeze,
PhantomData<Statement>: Freeze,
impl Move for ForStmt
impl RefUnwindSafe for ForStmt
impl Send for ForStmt
impl Sync for ForStmt
impl Unpin for ForStmt
impl UnsafeUnpin for ForStmtwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LiteralValue>: UnsafeUnpin,
PhantomData<ProductMeasure>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<Comprehension>: UnsafeUnpin,
*const Comprehension is !null: UnsafeUnpin,
PhantomData<Statement>: UnsafeUnpin,
impl UnwindSafe for ForStmtwhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
BoxRaw<Comprehension>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<ForSource>: UnwindSafe,
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