mod.rs
This file
Path
src/parameter/mod.rs
21 lines · 482 bytes · Rust
Last changed by
Fix clippy suggestionsDavid Peterbefore adoptionc7e5694
History of this fileTake it
The walk stopped after 200 commits: lines older than bcd3705 point at it.
Add number of runs to advanced_statistics.pyDavid Peterbefore adoptionbcd3705
lines 1–11why, one step back1use crate::util::number::Number;23pub mod range_step;4pub mod tokenize;56#[derive(Debug, Clone, PartialEq, Eq)]7pub enum ParameterValue {8 Text(String),9 Numeric(Number),10}11Fix clippy suggestionsDavid Peterbefore adoptionc7e5694
line 12why, one step back12impl ToString for ParameterValue {Add number of runs to advanced_statistics.pyDavid Peterbefore adoptionbcd3705
lines 13–21why, one step back13 fn to_string(&self) -> String {14 match self {15 ParameterValue::Text(ref value) => value.clone(),16 ParameterValue::Numeric(value) => value.to_string(),17 }18 }19}2021pub type ParameterNameAndValue<'a> = (&'a str, ParameterValue);