pub enum Command {
Break,
AssignVariable {
name: Value,
value: CommandExpression,
},
Conditional {
condition: CommandExpression,
body: Vec<Command>,
otherwise: Option<Vec<Command>>,
},
DeclareVariable {
kind: VariableKind,
name: Value,
value: CommandExpression,
},
Evaluate {
expr: CommandExpression,
},
Loop {
body: Vec<Command>,
},
Puts {
value: CommandExpression,
},
Scope {
body: Vec<Command>,
},
}Variants§
Break
AssignVariable
Conditional
DeclareVariable
Evaluate
Fields
§
expr: CommandExpressionLoop
Puts
Fields
§
value: CommandExpressionScope
Implementations§
Trait Implementations§
Source§impl Compilable for Command
impl Compilable for Command
fn compile_bytecode(&self) -> Box<str>
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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