pub enum Instruction {
ProcedureDef(String, Vec<String>, Vec<Instruction>),
RepeatUntilBlock(Expr, Vec<Instruction>),
RepeatTimes(Expr, Vec<Instruction>),
ForEach(String, String, Vec<Instruction>),
IfSelection(Expr, Vec<Instruction>),
IfElseSelection(Expr, Vec<Instruction>, Vec<Instruction>),
ReturnStmt(Expr),
DisplayStmt(Expr),
ProcedureCall(String, Vec<Expr>),
IdentAssignment(String, Expr),
IndexAssignment(String, Expr, Expr),
}Variants§
ProcedureDef(String, Vec<String>, Vec<Instruction>)
RepeatUntilBlock(Expr, Vec<Instruction>)
RepeatTimes(Expr, Vec<Instruction>)
ForEach(String, String, Vec<Instruction>)
IfSelection(Expr, Vec<Instruction>)
IfElseSelection(Expr, Vec<Instruction>, Vec<Instruction>)
ReturnStmt(Expr)
DisplayStmt(Expr)
ProcedureCall(String, Vec<Expr>)
IdentAssignment(String, Expr)
IndexAssignment(String, Expr, Expr)
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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