pub struct StmtFor {
pub name: String,
pub start: Expression,
pub end: Expression,
pub step: Expression,
pub block: Block,
pub span: Span,
}Expand description
for statement with start, end, step.
Fields§
§name: String§start: Expression§end: Expression§step: Expression§block: Block§span: SpanImplementations§
Source§impl StmtFor
impl StmtFor
pub fn new( name: String, start: Expression, end: Expression, step: Expression, block: Block, span: Span, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StmtFor
impl RefUnwindSafe for StmtFor
impl Send for StmtFor
impl Sync for StmtFor
impl Unpin for StmtFor
impl UnwindSafe for StmtFor
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