pub struct If {
pub cond: Expression,
pub true_block: Block,
pub else_if_conds: Vec<Expression>,
pub else_if_blocks: Vec<Block>,
pub else_block: Option<Block>,
pub source_range: Range,
}
Expand description
If-expression.
Fields§
§cond: Expression
Condition.
true_block: Block
True block.
else_if_conds: Vec<Expression>
Else-if conditions.
else_if_blocks: Vec<Block>
Else-if blocks.
else_block: Option<Block>
Else block.
source_range: Range
The range in source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl !UnwindSafe for If
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