struct HashValue(u16);
Expand description
Hash values are limited to u16 as well. While fast_hash
and Hasher
return usize
hash codes, limiting the effective hash code to the lower 16
bits is fine since we know that the indices
vector will never grow beyond
that size.
Tuple Fields§
§0: u16
Trait Implementations§
source§impl PartialEq for HashValue
impl PartialEq for HashValue
impl Copy for HashValue
impl Eq for HashValue
impl StructuralPartialEq for HashValue
Auto Trait Implementations§
impl Freeze for HashValue
impl RefUnwindSafe for HashValue
impl Send for HashValue
impl Sync for HashValue
impl Unpin for HashValue
impl UnwindSafe for HashValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more