pub struct IfElseStmt {
pub branches: Vec<IfBranch>,
pub else_branch: Option<Block>,
}Expand description
IF/ELSE IF/ELSE — conditional branches, each with a block body.
Fields§
§branches: Vec<IfBranch>IF cond body plus any ELSE IF arms, in source order.
else_branch: Option<Block>The trailing ELSE block, if any.
Trait Implementations§
Source§impl Clone for IfElseStmt
impl Clone for IfElseStmt
Source§fn clone(&self) -> IfElseStmt
fn clone(&self) -> IfElseStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IfElseStmt
impl Debug for IfElseStmt
Source§impl PartialEq for IfElseStmt
impl PartialEq for IfElseStmt
impl StructuralPartialEq for IfElseStmt
Auto Trait Implementations§
impl Freeze for IfElseStmt
impl RefUnwindSafe for IfElseStmt
impl Send for IfElseStmt
impl Sync for IfElseStmt
impl Unpin for IfElseStmt
impl UnsafeUnpin for IfElseStmt
impl UnwindSafe for IfElseStmt
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