pub struct StmtIf {
pub condition: Expression,
pub block: Block,
pub else_ifs: Vec<(Expression, Block)>,
pub else_: Option<Block>,
}
Expand description
if statement
Fields§
§condition: Expression
§block: Block
§else_ifs: Vec<(Expression, Block)>
§else_: Option<Block>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StmtIf
impl !RefUnwindSafe for StmtIf
impl !Send for StmtIf
impl !Sync for StmtIf
impl Unpin for StmtIf
impl !UnwindSafe for StmtIf
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