pub enum ParameterKind {
Number {
expression: String,
min: Option<f64>,
max: Option<f64>,
},
Table {
columns: Vec<String>,
rows: Vec<Row>,
selected: String,
},
}Expand description
What a parameter of a program is, as an editor lists them all: a number
its crate::parameters::steps::DefineParameters step defines, or a table a
crate::parameters::steps::LookupTable step of its own looks up.
Variants§
Number
A number, given as a formula of the parameters defined before it —
12, width / 2. min and max are what a slider offers when the
part is placed, not what is valid.
Table
A family of variants, one per row, of which selected is the one
built: its name is the parameter’s value, and name.column its
value in column.
Trait Implementations§
Source§impl Clone for ParameterKind
impl Clone for ParameterKind
Source§fn clone(&self) -> ParameterKind
fn clone(&self) -> ParameterKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParameterKind
impl Debug for ParameterKind
Source§impl<'de> Deserialize<'de> for ParameterKind
impl<'de> Deserialize<'de> for ParameterKind
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
Source§impl PartialEq for ParameterKind
impl PartialEq for ParameterKind
Source§impl Serialize for ParameterKind
impl Serialize for ParameterKind
impl StructuralPartialEq for ParameterKind
Auto Trait Implementations§
impl Freeze for ParameterKind
impl RefUnwindSafe for ParameterKind
impl Send for ParameterKind
impl Sync for ParameterKind
impl Unpin for ParameterKind
impl UnsafeUnpin for ParameterKind
impl UnwindSafe for ParameterKind
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