pub enum ForBinding {
Single(Ident),
Destructured(Vec<Ident>, Span),
}Expand description
Binding in a for loop — either a single identifier or a
destructured tuple like (a, b).
Variants§
Trait Implementations§
Source§impl Clone for ForBinding
impl Clone for ForBinding
Source§fn clone(&self) -> ForBinding
fn clone(&self) -> ForBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForBinding
impl RefUnwindSafe for ForBinding
impl Send for ForBinding
impl Sync for ForBinding
impl Unpin for ForBinding
impl UnsafeUnpin for ForBinding
impl UnwindSafe for ForBinding
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