fastnum 0.7.4

Fast decimal numbers library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use core::hash::{Hash, Hasher};

use crate::decimal::Decimal;

impl<const N: usize> Hash for Decimal<N> {
    #[inline]
    fn hash<H: Hasher>(&self, state: &mut H) {
        let normalized = self.reduce();
        normalized.digits.hash(state);
        normalized.cb.hash(state);
    }
}