pub enum Pattern {
Ident(String),
Destructure(Vec<String>),
}Expand description
Variable binding pattern used in {#each}.
Variants§
Ident(String)
{#each items as item} — binds the whole element.
Destructure(Vec<String>)
{#each items as { name, email }} — destructures object keys.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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