use core::cmp::Ordering;
use crate::decimal::Decimal;
impl<const N: usize> PartialOrd for Decimal<N> {
#[inline(always)]
fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> {
Some(core::cmp::Ord::cmp(self, rhs))
}
}
impl<const N: usize> Ord for Decimal<N> {
#[inline(always)]
fn cmp(&self, rhs: &Self) -> Ordering {
self.cmp(rhs)
}
}