pub struct AstIf {
pub condition: AstIndex,
pub then_node: AstIndex,
pub else_if_blocks: AstVec<(AstIndex, AstIndex)>,
pub else_node: Option<AstIndex>,
pub inline: bool,
}Expand description
An if expression definition
Fields§
§condition: AstIndexThe if expression’s condition
then_node: AstIndexThe if expression’s then branch
else_if_blocks: AstVec<(AstIndex, AstIndex)>An optional series of else if conditions and branches
else_node: Option<AstIndex>An optional else branch
inline: boolWhether or not the if expression was defined using inline syntax
Trait Implementations§
impl Eq for AstIf
impl StructuralPartialEq for AstIf
Auto Trait Implementations§
impl Freeze for AstIf
impl RefUnwindSafe for AstIf
impl Send for AstIf
impl Sync for AstIf
impl Unpin for AstIf
impl UnwindSafe for AstIf
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