reifydb_value/value/temporal/
compare.rs1use crate::value::is::IsTemporal;
5
6#[inline]
7pub fn is_equal<T>(l: &T, r: &T) -> bool
8where
9 T: IsTemporal,
10{
11 l == r
12}
13
14#[inline]
15pub fn is_not_equal<T>(l: &T, r: &T) -> bool
16where
17 T: IsTemporal,
18{
19 l != r
20}
21
22#[inline]
23pub fn is_greater_than<T>(l: &T, r: &T) -> bool
24where
25 T: IsTemporal,
26{
27 l > r
28}
29
30#[inline]
31pub fn is_greater_than_equal<T>(l: &T, r: &T) -> bool
32where
33 T: IsTemporal,
34{
35 l >= r
36}
37
38#[inline]
39pub fn is_less_than<T>(l: &T, r: &T) -> bool
40where
41 T: IsTemporal,
42{
43 l < r
44}
45
46#[inline]
47pub fn is_less_than_equal<T>(l: &T, r: &T) -> bool
48where
49 T: IsTemporal,
50{
51 l <= r
52}