pub struct IfNode {
pub test: AstNodeId,
pub then_branch: AstNodeId,
pub else_branch: AstNodeId,
pub span: SourceSpan,
}Expand description
Conditional expression (if (test) then expr else expr).
Fields§
§test: AstNodeIdTest/condition expression.
then_branch: AstNodeIdThen branch expression.
else_branch: AstNodeIdElse branch expression.
span: SourceSpanSource location.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfNode
impl RefUnwindSafe for IfNode
impl Send for IfNode
impl Sync for IfNode
impl Unpin for IfNode
impl UnsafeUnpin for IfNode
impl UnwindSafe for IfNode
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