pub struct IfStmtNode {
pub condition: NodeId,
pub then_branch: NodeId,
pub else_branch: Option<NodeId>,
pub span: SourceSpan,
}Expand description
If statement: if ( expression ) statement ( else statement )?
Fields§
§condition: NodeId§then_branch: NodeId§else_branch: Option<NodeId>§span: SourceSpanTrait Implementations§
Source§impl Clone for IfStmtNode
impl Clone for IfStmtNode
impl Copy for IfStmtNode
Source§impl Debug for IfStmtNode
impl Debug for IfStmtNode
Source§impl PartialEq for IfStmtNode
impl PartialEq for IfStmtNode
impl StructuralPartialEq for IfStmtNode
Auto Trait Implementations§
impl Freeze for IfStmtNode
impl RefUnwindSafe for IfStmtNode
impl Send for IfStmtNode
impl Sync for IfStmtNode
impl Unpin for IfStmtNode
impl UnsafeUnpin for IfStmtNode
impl UnwindSafe for IfStmtNode
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