pub struct ForeachIndex<'s> {
pub type_: Option<Type<'s>>,
pub name: Identifier<'s>,
pub comma: &'s Token<'s>,
}Expand description
Optional index definition in a ForeachStatement.
Grammar: Type? Identifier ,
Fields§
§type_: Option<Type<'s>>§name: Identifier<'s>§comma: &'s Token<'s>Trait Implementations§
Source§impl<'s> Clone for ForeachIndex<'s>
impl<'s> Clone for ForeachIndex<'s>
Source§fn clone(&self) -> ForeachIndex<'s>
fn clone(&self) -> ForeachIndex<'s>
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<'s> Freeze for ForeachIndex<'s>
impl<'s> RefUnwindSafe for ForeachIndex<'s>
impl<'s> Send for ForeachIndex<'s>
impl<'s> Sync for ForeachIndex<'s>
impl<'s> Unpin for ForeachIndex<'s>
impl<'s> UnwindSafe for ForeachIndex<'s>
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