pub enum Pattern {
Identifier(Symbol),
Tuple(Vec<Symbol>),
}Expand description
Pattern for loop variable binding. Supports single identifiers and tuple destructuring for Map iteration.
Variants§
Identifier(Symbol)
Single identifier: Repeat for x in list
Tuple(Vec<Symbol>)
Tuple destructuring: Repeat for (k, v) in map
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 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