pub struct StrHashIdentityBuildHasher;Expand description
BuildHasher that treats StrHash as pre-hashed via its upper 64 bits.
HashMap still stores the full StrHash key and uses Eq to finish
the lookup; only bucket selection skips a second SipHash over the 16 bytes.
Trait Implementations§
Source§impl BuildHasher for StrHashIdentityBuildHasher
impl BuildHasher for StrHashIdentityBuildHasher
Source§fn build_hasher(&self) -> Self::Hasher
fn build_hasher(&self) -> Self::Hasher
Creates a new hasher. Read more
Source§impl Clone for StrHashIdentityBuildHasher
impl Clone for StrHashIdentityBuildHasher
Source§fn clone(&self) -> StrHashIdentityBuildHasher
fn clone(&self) -> StrHashIdentityBuildHasher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrHashIdentityBuildHasher
impl Debug for StrHashIdentityBuildHasher
Source§impl Default for StrHashIdentityBuildHasher
impl Default for StrHashIdentityBuildHasher
Source§fn default() -> StrHashIdentityBuildHasher
fn default() -> StrHashIdentityBuildHasher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StrHashIdentityBuildHasher
impl RefUnwindSafe for StrHashIdentityBuildHasher
impl Send for StrHashIdentityBuildHasher
impl Sync for StrHashIdentityBuildHasher
impl Unpin for StrHashIdentityBuildHasher
impl UnsafeUnpin for StrHashIdentityBuildHasher
impl UnwindSafe for StrHashIdentityBuildHasher
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