pub struct If {
pub condition: Box<Expression>,
pub then_block: Block,
pub elseif_clauses: Vec<ElseIf>,
pub else_block: Option<Block>,
pub span: Span,
}Expand description
if cond then body [elseif …]* [else …] end
Fields§
§condition: Box<Expression>§then_block: Block§elseif_clauses: Vec<ElseIf>§else_block: Option<Block>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for If
impl RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl UnsafeUnpin 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