#[repr(C)]pub struct For {
pub iterator: Box<Node>,
pub iteratee: Box<Node>,
pub body: Option<Box<Node>>,
pub keyword_l: Loc,
pub operator_l: Loc,
pub begin_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}Expand description
Represents a for loop
Fields§
§iterator: Box<Node>Variable that is used in loop, Lvasgn("a") in for a in b; end
iteratee: Box<Node>Collection that is for iteration. Lvar("b") in for a in b; end
body: Option<Box<Node>>Body of the loop. None if there’s no body
keyword_l: LocLocation of the for keyword
for a in b; end
~~~operator_l: LocLocation of the in keyword
for a in b; end
~~begin_l: LocLocation of the do keyword
for a in b do; end
~~Note: this do is optional, and so begin_l can be None.
end_l: LocLocation of the end keyword
for a in b; end
~~~expression_l: LocLocation of the full expression
for a in b; end
~~~~~~~~~~~~~~~Trait Implementations§
impl StructuralPartialEq for For
Auto Trait Implementations§
impl Freeze for For
impl RefUnwindSafe for For
impl Send for For
impl Sync for For
impl Unpin for For
impl UnwindSafe for For
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