pub struct ForClauseCommand {
pub variable_name: String,
pub values: Option<Vec<Word>>,
pub body: DoGroupCommand,
pub loc: TokenLocation,
}Expand description
A for clause, which loops over a set of values.
Fields§
§variable_name: StringThe name of the iterator variable.
values: Option<Vec<Word>>The values being iterated over.
body: DoGroupCommandThe command to run for each iteration of the loop.
loc: TokenLocationLocation of the for loop
Trait Implementations§
Source§impl Clone for ForClauseCommand
impl Clone for ForClauseCommand
Source§fn clone(&self) -> ForClauseCommand
fn clone(&self) -> ForClauseCommand
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 ForClauseCommand
impl Debug for ForClauseCommand
Source§impl Display for ForClauseCommand
impl Display for ForClauseCommand
Source§impl SourceLocation for ForClauseCommand
impl SourceLocation for ForClauseCommand
Source§fn location(&self) -> Option<TokenLocation>
fn location(&self) -> Option<TokenLocation>
The location of the syntax item, when known
Auto Trait Implementations§
impl Freeze for ForClauseCommand
impl RefUnwindSafe for ForClauseCommand
impl Send for ForClauseCommand
impl Sync for ForClauseCommand
impl Unpin for ForClauseCommand
impl UnwindSafe for ForClauseCommand
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