pub struct Loop {
pub item: LocalId,
pub index: Option<LocalId>,
pub iterable: Iterable,
}Expand description
A for’s variables and what it loops over.
Fields§
§item: LocalIdEach element of a list, or each int of a range.
index: Option<LocalId>The element’s 0-based position, in for index, item in list.
iterable: IterableTrait Implementations§
Auto Trait Implementations§
impl !Send for Loop
impl !Sync for Loop
impl Freeze for Loop
impl RefUnwindSafe for Loop
impl Unpin for Loop
impl UnsafeUnpin for Loop
impl UnwindSafe for Loop
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