Move more modules around

This commit is contained in:
David Peter authored and David Peter committed 2022-02-06 20:19:50 +01:00
1 parent 47091a5740
commit 999e7c4566
9 files changed
+59 -59

No files matched your search

+2 -2
View File
@@ -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 {
+3 -3
View File
@@ -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
{
}