pub struct IfBranch {
pub condition: Spanned<Expr>,
pub body: Block,
}Expand description
One IF/ELSE IF arm: a condition and its body.
Fields§
§condition: Spanned<Expr>The branch condition.
body: BlockThe block run when the condition holds.
Trait Implementations§
impl StructuralPartialEq for IfBranch
Auto Trait Implementations§
impl Freeze for IfBranch
impl RefUnwindSafe for IfBranch
impl Send for IfBranch
impl Sync for IfBranch
impl Unpin for IfBranch
impl UnsafeUnpin for IfBranch
impl UnwindSafe for IfBranch
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