1
Fork 0

Replace some u64 hashes with Hash64

This commit is contained in:
Ben Kimock 2025-02-15 13:57:21 -05:00
parent fc147b4a81
commit 1d7cf0ff40
6 changed files with 25 additions and 15 deletions

View file

@ -35,6 +35,11 @@ impl Hash64 {
pub fn as_u64(self) -> u64 {
self.inner
}
#[inline]
pub fn wrapping_add(self, other: Self) -> Self {
Self { inner: self.inner.wrapping_add(other.inner) }
}
}
impl BitXorAssign<u64> for Hash64 {