pub struct GenericFor {
pub for_keyword: Token,
pub names: List<Name>,
pub in_keyword: Token,
pub expressions: List<Pointer<Expression>>,
pub do_block: DoBlock,
}Expand description
A struct representing a for-in loop.
Fields§
§for_keyword: TokenThe for keyword.
names: List<Name>List of names after the for keyword.
in_keyword: TokenThe in keyword.
expressions: List<Pointer<Expression>>The expressions after.
do_block: DoBlockThe do block.
Trait Implementations§
Source§impl Clone for GenericFor
impl Clone for GenericFor
Source§fn clone(&self) -> GenericFor
fn clone(&self) -> GenericFor
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 moreSource§impl Debug for GenericFor
impl Debug for GenericFor
Source§impl GetRange for GenericFor
impl GetRange for GenericFor
Source§impl Hash for GenericFor
impl Hash for GenericFor
Source§impl Ord for GenericFor
impl Ord for GenericFor
Source§fn cmp(&self, other: &GenericFor) -> Ordering
fn cmp(&self, other: &GenericFor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for GenericFor
impl Parse for GenericFor
Source§impl PartialEq for GenericFor
impl PartialEq for GenericFor
Source§impl PartialOrd for GenericFor
impl PartialOrd for GenericFor
Source§impl Print for GenericFor
impl Print for GenericFor
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
impl Eq for GenericFor
impl StructuralPartialEq for GenericFor
Auto Trait Implementations§
impl Freeze for GenericFor
impl RefUnwindSafe for GenericFor
impl !Send for GenericFor
impl !Sync for GenericFor
impl Unpin for GenericFor
impl UnwindSafe for GenericFor
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