pub enum ShellUnit {
Simple(String),
For {
header: String,
body: Vec<ShellUnit>,
},
Loop {
kind: LoopKind,
condition: Vec<ShellUnit>,
body: Vec<ShellUnit>,
},
If {
branches: Vec<Branch>,
else_body: Vec<ShellUnit>,
},
}Variants§
Trait Implementations§
impl Eq for ShellUnit
impl StructuralPartialEq for ShellUnit
Auto Trait Implementations§
impl Freeze for ShellUnit
impl RefUnwindSafe for ShellUnit
impl Send for ShellUnit
impl Sync for ShellUnit
impl Unpin for ShellUnit
impl UnsafeUnpin for ShellUnit
impl UnwindSafe for ShellUnit
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