pub struct IfBranch {
pub cond: Arc<Expr>,
pub body: StmtList,
}Expand description
One branch of an <<if>> chain: condition AST + body statements.
Fields§
§cond: Arc<Expr>Parsed condition (same as would be produced from the source string at compile time).
body: StmtListStatements when this branch is taken.
Trait Implementations§
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