Replace some u64 hashes with Hash64
This commit is contained in:
parent
fc147b4a81
commit
1d7cf0ff40
6 changed files with 25 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue