reifydb-value 0.6.0

Core type system and value representations for ReifyDB
Documentation
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 ReifyDB

use crate::value::is::IsTemporal;

#[inline]
pub fn is_equal<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l == r
}

#[inline]
pub fn is_not_equal<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l != r
}

#[inline]
pub fn is_greater_than<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l > r
}

#[inline]
pub fn is_greater_than_equal<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l >= r
}

#[inline]
pub fn is_less_than<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l < r
}

#[inline]
pub fn is_less_than_equal<T>(l: &T, r: &T) -> bool
where
	T: IsTemporal,
{
	l <= r
}