pub enum ScriptStmt {
Assign(String, String),
Command(String),
SetE,
If {
cond: String,
then_body: Vec<Self>,
else_body: Option<Vec<Self>>,
},
For {
var: String,
words: Vec<String>,
body: Vec<Self>,
},
While {
cond: String,
body: Vec<Self>,
},
Source(String),
}Expand description
One script statement.
Variants§
Trait Implementations§
Source§impl Clone for ScriptStmt
impl Clone for ScriptStmt
Source§fn clone(&self) -> ScriptStmt
fn clone(&self) -> ScriptStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScriptStmt
impl RefUnwindSafe for ScriptStmt
impl Send for ScriptStmt
impl Sync for ScriptStmt
impl Unpin for ScriptStmt
impl UnsafeUnpin for ScriptStmt
impl UnwindSafe for ScriptStmt
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