pub struct LookupTable;Expand description
Looks the row a part family is built in up in a table: the row the
run’s text input input names — size = "M4" from a program placing
the part — else the row selected. Defines the parameter input as the
row’s name, and input.column as its value in each column (size.d),
each a target of its own (parameter), and adds them to the part’s
ParameterValues. A text that names no row fails, naming the input
and the rows.
Trait Implementations§
Source§impl Clone for LookupTable
impl Clone for LookupTable
Source§fn clone(&self) -> LookupTable
fn clone(&self) -> LookupTable
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 LookupTable
Source§impl Debug for LookupTable
impl Debug for LookupTable
Source§impl Default for LookupTable
impl Default for LookupTable
Source§fn default() -> LookupTable
fn default() -> LookupTable
Source§impl<'de> Deserialize<'de> for LookupTable
impl<'de> Deserialize<'de> for LookupTable
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 LookupTable
impl Editable for LookupTable
const INFO: OperationInfo = <LookupTable as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<LookupTable as PartOperation>::Session>
type EditingState = FormState<<LookupTable 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 LookupTable
impl Operation for LookupTable
Source§const KIND: &'static str = <LookupTable as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <LookupTable as ::geop_core_editor::part_operation::PartOperation>::KIND
Source§type Args = <LookupTable as PartOperation>::Args
type Args = <LookupTable 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 LookupTable
impl PartOperation for LookupTable
Source§fn run(ctx: &mut StepContext<'_>, args: &LookupTableArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &LookupTableArgs) -> GeopResult<()>
The row, then each column of it, then the step’s entries of the part’s parameter values.
Source§fn form<'a>(
_: &'a Context<'a>,
args: &LookupTableArgs,
_: &FormState<()>,
) -> EditForm<'a, LookupTableArgs>
fn form<'a>( _: &'a Context<'a>, args: &LookupTableArgs, _: &FormState<()>, ) -> EditForm<'a, LookupTableArgs>
The table, in a popup: the input it is looked up by, and its rows — each named in the first column, the one built where the run names none chosen — with a value per column; the columns are the user’s, named in their headers. A column or a row added is named afresh and its values are 0; the last row is not taken out, and taking out the row chosen chooses the first left.
const INFO: OperationInfo
Source§type Args = LookupTableArgs
type Args = LookupTableArgs
Source§type Session = ()
type Session = ()
() for most.