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

Struct IfExpression

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

An if expression decomposed by Expr::as_if.

Implementations

impl IfExpression

pub comptime fn condition(self) -> Expr

The condition controlling the expression.

pub comptime fn consequence(self) -> Expr

The branch evaluated when the condition is true.

pub comptime fn alternative(self) -> Option<Expr>

The optional branch evaluated when the condition is false.