mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 16:40:18 +00:00
Move more modules around
This commit is contained in:
1 parent
47091a5740
commit
999e7c4566
9 files changed
+59
-59
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use crate::numeric::NumericType;
|
||||
use crate::number::Number;
|
||||
|
||||
pub mod range;
|
||||
pub mod tokenize;
|
||||
@@ -6,7 +6,7 @@ pub mod tokenize;
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum ParameterValue {
|
||||
Text(String),
|
||||
Numeric(NumericType),
|
||||
Numeric(Number),
|
||||
}
|
||||
|
||||
impl<'a> ToString for ParameterValue {
|
||||
|
||||
@@ -8,7 +8,7 @@ use rust_decimal::Decimal;
|
||||
use super::ParameterValue;
|
||||
use crate::command::Command;
|
||||
use crate::error::ParameterScanError;
|
||||
use crate::numeric::NumericType;
|
||||
use crate::number::Number;
|
||||
|
||||
trait Numeric:
|
||||
Add<Output = Self>
|
||||
@@ -19,7 +19,7 @@ trait Numeric:
|
||||
+ Copy
|
||||
+ Clone
|
||||
+ From<i32>
|
||||
+ Into<NumericType>
|
||||
+ Into<Number>
|
||||
{
|
||||
}
|
||||
impl<
|
||||
@@ -31,7 +31,7 @@ impl<
|
||||
+ Copy
|
||||
+ Clone
|
||||
+ From<i32>
|
||||
+ Into<NumericType>,
|
||||
+ Into<Number>,
|
||||
> Numeric for T
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user