pub enum NumericInput {
Plain(f64),
Formula {
formula: String,
},
}Expand description
A number an operation is given: a plain value, or a formula of the
program’s parameters that it follows. Saved as a number when plain, and
as {"formula": "width / 2"} otherwise.
Variants§
Implementations§
Source§impl NumericInput
impl NumericInput
Sourcepub fn resolve(&self, reader: &Reader<'_>) -> GeopResult<f64>
pub fn resolve(&self, reader: &Reader<'_>) -> GeopResult<f64>
Its value, each parameter it names read through reader (see
read_parameter): in a target’s generator, every one of them
recorded read.
Trait Implementations§
Source§impl Clone for NumericInput
impl Clone for NumericInput
Source§fn clone(&self) -> NumericInput
fn clone(&self) -> NumericInput
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 NumericInput
impl Debug for NumericInput
Source§impl Default for NumericInput
Zero, plain.
impl Default for NumericInput
Zero, plain.
Source§impl<'de> Deserialize<'de> for NumericInput
impl<'de> Deserialize<'de> for NumericInput
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 Display for NumericInput
impl Display for NumericInput
Source§impl From<&str> for NumericInput
impl From<&str> for NumericInput
Source§impl From<String> for NumericInput
impl From<String> for NumericInput
Source§impl From<f64> for NumericInput
impl From<f64> for NumericInput
Source§impl PartialEq for NumericInput
impl PartialEq for NumericInput
Source§impl Serialize for NumericInput
impl Serialize for NumericInput
impl StructuralPartialEq for NumericInput
Auto Trait Implementations§
impl Freeze for NumericInput
impl RefUnwindSafe for NumericInput
impl Send for NumericInput
impl Sync for NumericInput
impl Unpin for NumericInput
impl UnsafeUnpin for NumericInput
impl UnwindSafe for NumericInput
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