Struct brush_parser::ast::ForClauseCommand
source · pub struct ForClauseCommand {
pub variable_name: String,
pub values: Option<Vec<Word>>,
pub body: DoGroupCommand,
}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.
Trait Implementations§
source§impl Clone for ForClauseCommand
impl Clone for ForClauseCommand
source§fn clone(&self) -> ForClauseCommand
fn clone(&self) -> ForClauseCommand
Returns a copy 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
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