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

The name of the variable to which each of the words will be bound.

A comment that begins on the same line as the variable declaration.

Any comments after the variable declaration, a group of words to iterator over, and comment defined on the same line as the words.

Any comments that appear after the words declaration (if it exists), but before the body of commands.

The body to be invoked for every iteration.

Trait Implementations

impl<W: Debug, C: Debug> Debug for ForFragments<W, C>
[src]

Formats the value using the given formatter.

impl<W: PartialEq, C: PartialEq> PartialEq for ForFragments<W, C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more