Struct conch_parser::ast::builder::ForFragments
[−]
[src]
pub struct ForFragments<W, C> {
pub var: String,
pub var_comment: Option<Newline>,
pub words: Option<(Vec<Newline>, Vec<W>, Option<Newline>)>,
pub pre_body_comments: Vec<Newline>,
pub body: CommandGroup<C>,
}Parsed fragments relating to a shell for command.
Fields
var: String
The name of the variable to which each of the words will be bound.
var_comment: Option<Newline>
A comment that begins on the same line as the variable declaration.
words: Option<(Vec<Newline>, Vec<W>, Option<Newline>)>
Any comments after the variable declaration, a group of words to iterator over, and comment defined on the same line as the words.
pre_body_comments: Vec<Newline>
Any comments that appear after the words declaration (if it exists),
but before the body of commands.
body: CommandGroup<C>
The body to be invoked for every iteration.
Trait Implementations
impl<W: Debug, C: Debug> Debug for ForFragments<W, C>[src]
impl<W: PartialEq, C: PartialEq> PartialEq for ForFragments<W, C>[src]
fn eq(&self, __arg_0: &ForFragments<W, C>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ForFragments<W, C>) -> bool
This method tests for !=.
impl<W: Eq, C: Eq> Eq for ForFragments<W, C>[src]
impl<W: Clone, C: Clone> Clone for ForFragments<W, C>[src]
fn clone(&self) -> ForFragments<W, C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more