Struct koto_parser::AstFor
source · pub struct AstFor {
pub args: Vec<AstIndex>,
pub iterable: AstIndex,
pub body: AstIndex,
}
Expand description
A for loop definition
Fields§
§args: Vec<AstIndex>
The ids that capture each iteration’s output values, or wildcards that ignore them
iterable: AstIndex
The expression that produces an iterable value
body: AstIndex
The body of the for loop
Trait Implementations§
source§impl PartialEq for AstFor
impl PartialEq for AstFor
impl Eq for AstFor
impl StructuralPartialEq for AstFor
Auto Trait Implementations§
impl Freeze for AstFor
impl RefUnwindSafe for AstFor
impl Send for AstFor
impl Sync for AstFor
impl Unpin for AstFor
impl UnwindSafe for AstFor
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