Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 0b5ad72 point at it.

Rename to commandDavid Peterbefore adoption0b5ad72

lines 1–11why, one step back
1use 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}11

Fix clippy suggestionsDavid Peterbefore adoptionc7e5694

line 12why, one step back
12impl ToString for ParameterValue {

Rename to commandDavid Peterbefore adoption0b5ad72

lines 13–21why, one step back
13 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);