Enum yash_syntax::syntax::CompoundCommand
source · [−]pub enum CompoundCommand<H = HereDoc> {
Grouping(List<H>),
Subshell(List<H>),
For {
name: Word,
values: Option<Vec<Word>>,
body: List<H>,
},
While {
condition: List<H>,
body: List<H>,
},
Until {
condition: List<H>,
body: List<H>,
},
If {
condition: List<H>,
body: List<H>,
elifs: Vec<ElifThen<H>>,
else: Option<List<H>>,
},
Case {
subject: Word,
items: Vec<CaseItem<H>>,
},
}
Expand description
Command that contains other commands.
Variants
Grouping(List<H>)
List as a command.
Subshell(List<H>)
Command for executing commands in a subshell.
For
For loop.
While
While loop.
Until
Until loop.
If
If conditional construct.
Case
Case conditional construct.
Trait Implementations
type Full = CompoundCommand
type Full = CompoundCommand
Final AST created by filling self
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<H = HereDoc> !RefUnwindSafe for CompoundCommand<H>
impl<H = HereDoc> !Send for CompoundCommand<H>
impl<H = HereDoc> !Sync for CompoundCommand<H>
impl<H> Unpin for CompoundCommand<H>
impl<H = HereDoc> !UnwindSafe for CompoundCommand<H>
Blanket Implementations
Mutably borrows from an owned value. Read more