"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/parameter/mod.rs" between
hyperfine-1.14.0.tar.gz and hyperfine-1.15.0.tar.gz

About: hyperfine is a command-line benchmarking tool.

mod.rs  (hyperfine-1.14.0):mod.rs  (hyperfine-1.15.0)
skipping to change at line 12 skipping to change at line 12
pub mod range_step; pub mod range_step;
pub mod tokenize; pub mod tokenize;
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum ParameterValue { pub enum ParameterValue {
Text(String), Text(String),
Numeric(Number), Numeric(Number),
} }
impl<'a> ToString for ParameterValue { impl ToString for ParameterValue {
fn to_string(&self) -> String { fn to_string(&self) -> String {
match self { match self {
ParameterValue::Text(ref value) => value.clone(), ParameterValue::Text(ref value) => value.clone(),
ParameterValue::Numeric(value) => value.to_string(), ParameterValue::Numeric(value) => value.to_string(),
} }
} }
} }
pub type ParameterNameAndValue<'a> = (&'a str, ParameterValue); pub type ParameterNameAndValue<'a> = (&'a str, ParameterValue);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)