pub struct IfBranch {
pub cond: Option<Expr>,
pub body: Vec<Node>,
}Expand description
One branch of an {% if %} / {% elif %} / {% else %} chain.
Fields§
§cond: Option<Expr>Condition; None for {% else %}.
body: Vec<Node>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 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