pub struct DefineParameters;Expand description
Defines the program’s number parameters, each a target of its own
(parameter): what the run’s input of its name sets it to, else what
it is defined as. A formula may read any other parameter of the step,
defined before it or after, and those the steps before defined — a
table’s columns; one reading one that reads it back fails, saying so.
Trait Implementations§
Source§impl Clone for DefineParameters
impl Clone for DefineParameters
Source§fn clone(&self) -> DefineParameters
fn clone(&self) -> DefineParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DefineParameters
Source§impl Debug for DefineParameters
impl Debug for DefineParameters
Source§impl Default for DefineParameters
impl Default for DefineParameters
Source§fn default() -> DefineParameters
fn default() -> DefineParameters
Source§impl<'de> Deserialize<'de> for DefineParameters
impl<'de> Deserialize<'de> for DefineParameters
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>,
Source§impl Editable for DefineParameters
impl Editable for DefineParameters
const INFO: OperationInfo = <DefineParameters as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<DefineParameters as PartOperation>::Session>
type EditingState = FormState<<DefineParameters as PartOperation>::Session>
Source§fn new_args(context: &Context<'_>) -> Self::Args
fn new_args(context: &Context<'_>) -> Self::Args
Source§fn presentation(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
) -> Form
fn presentation( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, ) -> Form
Source§fn process_user_event(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
event: Event,
) -> (Self::Args, Self::EditingState)
fn process_user_event( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, event: Event, ) -> (Self::Args, Self::EditingState)
event.Source§impl Operation for DefineParameters
impl Operation for DefineParameters
Source§const KIND: &'static str = <DefineParameters as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <DefineParameters as ::geop_core_editor::part_operation::PartOperation>::KIND
Source§type Args = <DefineParameters as PartOperation>::Args
type Args = <DefineParameters as PartOperation>::Args
Source§fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
ctx (see
StepContext::produce): cheap, since it runs in every run. What
takes work is done in the makes, which run only when what they read
changed.Source§impl PartOperation for DefineParameters
impl PartOperation for DefineParameters
Source§fn run(ctx: &mut StepContext<'_>, args: &DefineParametersArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &DefineParametersArgs) -> GeopResult<()>
Each parameter, in an order in which a formula’s parameters come before it, and then the step’s entries of the part’s parameter values.
Source§fn form<'a>(
ctx: &'a Context<'a>,
args: &DefineParametersArgs,
_: &FormState<()>,
) -> EditForm<'a, DefineParametersArgs>
fn form<'a>( ctx: &'a Context<'a>, args: &DefineParametersArgs, _: &FormState<()>, ) -> EditForm<'a, DefineParametersArgs>
The parameters as a table, in a popup: a row each, of its name, its
value — a number or a formula, and what it comes to in the part as
the step built it — and what a slider offers, from and to. A row
added is a fresh length of 10. A name typed here renames the
definition alone: a formula still reading the old name fails,
naming it, until it is changed too.
const INFO: OperationInfo
Source§type Args = DefineParametersArgs
type Args = DefineParametersArgs
Source§type Session = ()
type Session = ()
() for most.