pub struct EachBlock {
pub iterable: Expr,
pub pattern: Pattern,
pub index_binding: Option<String>,
pub loop_binding: Option<String>,
pub body: Vec<Node>,
pub else_body: Option<Vec<Node>>,
}Expand description
{#each expr as pattern, index, loop}...{:else}...{/each}
Fields§
§iterable: Expr§pattern: Pattern§index_binding: Option<String>§loop_binding: Option<String>Optional third binding exposing loop metadata: { index, length, first, last }.
body: Vec<Node>§else_body: Option<Vec<Node>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for EachBlock
impl RefUnwindSafe for EachBlock
impl Send for EachBlock
impl Sync for EachBlock
impl Unpin for EachBlock
impl UnsafeUnpin for EachBlock
impl UnwindSafe for EachBlock
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