Skip to main content

fastnum/decimal/udec/impls/
hash.rs

1use core::hash::{Hash, Hasher};
2
3use crate::decimal::UnsignedDecimal;
4
5impl<const N: usize> Hash for UnsignedDecimal<N> {
6    #[inline]
7    fn hash<H: Hasher>(&self, state: &mut H) {
8        self.0.hash(state);
9    }
10}