pub struct IfStmt {
pub leading_comments: Vec<Comment>,
pub if_span: Span,
pub paren_span: (Span, Span),
pub cond: Expr,
pub then_stmt: Box<Stmt>,
pub else_clause: Option<(Span, Box<Stmt>)>,
}Expand description
An if statement.
Fields§
§leading_comments: Vec<Comment>§if_span: Span§paren_span: (Span, Span)§cond: Expr§then_stmt: Box<Stmt>§else_clause: Option<(Span, Box<Stmt>)>Implementations§
Trait Implementations§
impl Eq for IfStmt
impl StructuralPartialEq for IfStmt
Auto Trait Implementations§
impl Freeze for IfStmt
impl RefUnwindSafe for IfStmt
impl Send for IfStmt
impl Sync for IfStmt
impl Unpin for IfStmt
impl UnsafeUnpin for IfStmt
impl UnwindSafe for IfStmt
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