pub struct IfBlock {
pub branches: Vec<IfBranch>,
pub else_body: Option<Vec<Node>>,
}Expand description
{#if cond}...{:else if cond}...{:else}...{/if}
Fields§
§branches: Vec<IfBranch>First entry is the {#if} branch; subsequent entries are {:else if} branches.
else_body: Option<Vec<Node>>Body of the {:else} branch, if present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfBlock
impl RefUnwindSafe for IfBlock
impl Send for IfBlock
impl Sync for IfBlock
impl Unpin for IfBlock
impl UnsafeUnpin for IfBlock
impl UnwindSafe for IfBlock
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