Compare timestamp type.
This commit is contained in:
@@ -22,6 +22,7 @@ use crate::context::RefContext;
|
||||
use crate::error::Res;
|
||||
use crate::parser::util::get_consumed;
|
||||
use crate::types::Timestamp;
|
||||
use crate::types::TimestampType;
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
pub(crate) fn timestamp<'b, 'g, 'r, 's>(
|
||||
@@ -57,6 +58,7 @@ fn diary_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::Diary,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -121,6 +123,7 @@ fn active_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::Active,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -155,6 +158,7 @@ fn inactive_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::Inactive,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -177,6 +181,7 @@ fn active_date_range_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::ActiveRange,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -218,6 +223,7 @@ fn active_time_range_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::Active,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -240,6 +246,8 @@ fn inactive_date_range_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
|
||||
timestamp_type: TimestampType::InactiveRange,
|
||||
},
|
||||
))
|
||||
}
|
||||
@@ -281,6 +289,7 @@ fn inactive_time_range_timestamp<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
Timestamp {
|
||||
source: source.into(),
|
||||
timestamp_type: TimestampType::Inactive,
|
||||
},
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user