Skip to main content

fastnum/decimal/dec/impls/
cmp.rs

1use crate::decimal::Decimal;
2
3impl<const N: usize> PartialEq for Decimal<N> {
4    #[inline(always)]
5    fn eq(&self, other: &Self) -> bool {
6        self.eq(other)
7    }
8
9    #[allow(clippy::partialeq_ne_impl)]
10    #[inline(always)]
11    fn ne(&self, other: &Self) -> bool {
12        self.ne(other)
13    }
14}
15
16impl<const N: usize> Eq for Decimal<N> {}