pub struct ProgramStep {
pub id: String,
pub operation: String,
pub args: Value,
pub active: Option<String>,
}Expand description
One step of a program: which operation, with which arguments, as saved, and whether it runs. The operation reads its arguments from their saved form each time it runs or is edited, so a program is plain data: it is copied for undo, compared for change, and saved as it is.
Fields§
§id: String§operation: String§args: Value§active: Option<String>Whether the step runs, as a formula of the program’s parameters
(crate::numeric::evaluate): it runs where the formula is not 0
— always, for none. A step that does not run is suppressed: it
produces nothing, and the steps after it see the part as the steps
before it left it (see crate::runner::Runner::run). "0"
suppresses it outright; a column of the table a program’s
configurations are looked up in, configuration.fillet, suppresses
it in the configurations whose row has 0 there.
Implementations§
Trait Implementations§
Source§impl Clone for ProgramStep
impl Clone for ProgramStep
Source§fn clone(&self) -> ProgramStep
fn clone(&self) -> ProgramStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more