pub enum ScriptConstruct {
Simple(Pipeline),
SetVar {
key: String,
val: Word,
},
UnsetVar(String),
ForLoop {
var: String,
items: Vec<Word>,
body: Vec<ScriptConstruct>,
},
WhileLoop {
cond: Vec<ScriptConstruct>,
body: Vec<ScriptConstruct>,
},
IfElse {
cond: Vec<ScriptConstruct>,
then_body: Vec<ScriptConstruct>,
else_body: Vec<ScriptConstruct>,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ScriptConstruct
impl Freeze for ScriptConstruct
impl Move for ScriptConstruct
impl RefUnwindSafe for ScriptConstruct
impl Send for ScriptConstruct
impl Sync for ScriptConstruct
impl Unpin for ScriptConstruct
impl UnsafeUnpin for ScriptConstruct
impl UnwindSafe for ScriptConstruct
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more