Struct koto_parser::AstIf [−][src]
pub struct AstIf {
pub condition: AstIndex,
pub then_node: AstIndex,
pub else_if_blocks: Vec<(AstIndex, AstIndex)>,
pub else_node: Option<AstIndex>,
}
Expand description
An if expression definition
Fields
condition: AstIndex
The if expression’s condition
then_node: AstIndex
The if expression’s then
branch
else_if_blocks: Vec<(AstIndex, AstIndex)>
An optional series of else if
conditions and branches
else_node: Option<AstIndex>
An optional else
branch
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AstIf
impl UnwindSafe for AstIf
Blanket Implementations
Mutably borrows from an owned value. Read more