pub enum StepKind {
Command {
id: String,
params: Value,
},
Repeat {
over: String,
of: RepeatOf,
max: u32,
body: Vec<Step>,
},
If {
cell: String,
op: CompareOp,
value: Value,
then: Vec<Step>,
otherwise: Vec<Step>,
},
Stop {
message: String,
rollback: bool,
},
}Variants§
Command
Runs a GridCraft command. String parameters may hold tokens, resolved when the step runs.
Repeat
Runs body once for each row (or column) of the range over, a token or reference; inside
it, Row (or Column) stands for the current one. At most max times.
If
Compares the value of cell (a token or reference to one cell) with value and runs
then or else.
Stop
Ends the run with a message. The changes made so far are kept, or undone with rollback.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for StepKind
Auto Trait Implementations§
impl Freeze for StepKind
impl RefUnwindSafe for StepKind
impl Send for StepKind
impl Sync for StepKind
impl Unpin for StepKind
impl UnsafeUnpin for StepKind
impl UnwindSafe for StepKind
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