pub enum Statement {
List(AndOrList),
If(IfStatement),
For(ForLoop),
While(WhileLoop),
Case(CaseStatement),
Function(FunctionDefinition),
}Expand description
One top-level or block-level statement.
Variants§
List(AndOrList)
An &&/|| list of pipelines.
If(IfStatement)
if ...; then ...; elif ...; else ...; fi.
For(ForLoop)
for NAME in WORDS...; do ...; done.
While(WhileLoop)
while LIST; do ...; done or until LIST; do ...; done.
Case(CaseStatement)
case WORD in PATTERN) ...;; esac.
Function(FunctionDefinition)
name() { ... }.
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.