For the complete documentation index, see llms.txt.
aztec-nr - std::meta::expr

Struct ForRangeExpression

pub comptime struct ForRangeExpression
{ /* private fields */ }

A for loop over a range, decomposed by Expr::as_for_range.

Implementations

impl ForRangeExpression

pub comptime fn identifier(self) -> Quoted

The loop variable as a Quoted identifier.

pub comptime fn start(self) -> Expr

The range's lower bound.

pub comptime fn end(self) -> Expr

The range's upper bound.

pub comptime fn is_inclusive(self) -> bool

Returns true if the upper bound is inclusive.

pub comptime fn body(self) -> Expr

The loop body.