Skip to main content

fastnum/decimal/udec/impls/ops/
neg.rs

1use core::ops::Neg;
2
3use crate::decimal::{Decimal, UnsignedDecimal};
4
5impl<const N: usize> Neg for UnsignedDecimal<N> {
6    type Output = Decimal<N>;
7
8    #[inline]
9    fn neg(self) -> Decimal<N> {
10        self.neg()
11    }
12}