pub struct ElseIfBranch {
pub condition: Expr,
pub body: Stmt,
pub span: Span,
}Expand description
An elseif branch.
Fields§
§condition: ExprThe elseif condition.
body: StmtStatement run when the condition holds.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for ElseIfBranch
impl Clone for ElseIfBranch
Source§impl Debug for ElseIfBranch
impl Debug for ElseIfBranch
Auto Trait Implementations§
impl Freeze for ElseIfBranch
impl RefUnwindSafe for ElseIfBranch
impl Send for ElseIfBranch
impl Sync for ElseIfBranch
impl Unpin for ElseIfBranch
impl UnsafeUnpin for ElseIfBranch
impl UnwindSafe for ElseIfBranch
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