Crate kittycad_execution_plan
source ·Expand description
A KittyCAD execution plan (KCEP) is a list of
- KittyCAD API requests to make
- Values to send in API requests
- Values to assign from API responses
- Computation to perform on values You can think of it as a domain-specific language for making KittyCAD API calls and using the results to make other API calls.
Re-exports§
pub use self::instruction::Instruction;
pub use self::instruction::InstructionKind;
Modules§
- Instruction for running KittyCAD API requests.
- Defined constants and ability to create more.
- Expose feature to import external geometry files. Instruction for importing a file. This will do all the file related operations, and return a kittycad_modeling_cmds::ImportFiles to be passed to Endpoint::ImportFiles.
- KCVM aka KCEP instructions.
- Types for sketching models.
Structs§
- Instruction to perform arithmetic on values in memory.
- Executing the program failed.
- Current state of execution.
- KCEP’s program memory. A flat, linear list of values.
- A stack where values can be pushed/popped.
- Helper wrapper around Memory. It lets you push static data into memory before the program runs.
- Instruction to perform arithmetic on values in memory.
Enums§
- Operations that can be applied to values in memory, requiring two operands.
- Somewhere values can be written to.
- Errors that could occur when executing a KittyCAD execution plan.
- Argument to an operation.
- Operations that can be applied to values in memory.
- Operations that can be applied to a value in memory, requiring one operand.
Functions§
- Execute the plan.
- Execute the plan, returning the state at every moment of execution. Also return the index of the final instruction executed. This will be the last instruction if execution succeeded, but it might be earlier if execution had an error and quit.