pub struct IfBranch {
pub cond: Option<Expr>,
pub body: Block,
pub span: Span,
}Expand description
One branch of an <if>.
Fields§
§cond: Option<Expr>The condition; None for <else>.
body: BlockThe branch body.
span: SpanSource location of the <if>, <elseif> or <else>.
Trait Implementations§
impl Eq for IfBranch
impl StructuralPartialEq for IfBranch
Auto Trait Implementations§
impl Forget for IfBranch
impl Freeze for IfBranch
impl Move 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