Struct FbBuildHasher
pub struct FbBuildHasher<const N: usize> { /* private fields */ }
Expand description
BuildHasher
optimized for hashing fixed-size byte arrays.
Works best with fxhash
, enabled by default with the “map-fxhash” feature.
NOTE: this hasher accepts only N
-length byte arrays! It is invalid to hash anything else.
Trait Implementations§
§impl<const N: usize> BuildHasher for FbBuildHasher<N>
impl<const N: usize> BuildHasher for FbBuildHasher<N>
§fn build_hasher(&self) -> <FbBuildHasher<N> as BuildHasher>::Hasher
fn build_hasher(&self) -> <FbBuildHasher<N> as BuildHasher>::Hasher
Creates a new hasher. Read more
§impl<const N: usize> Clone for FbBuildHasher<N>
impl<const N: usize> Clone for FbBuildHasher<N>
§fn clone(&self) -> FbBuildHasher<N>
fn clone(&self) -> FbBuildHasher<N>
Returns a copy 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 more§impl<const N: usize> Debug for FbBuildHasher<N>
impl<const N: usize> Debug for FbBuildHasher<N>
§impl<const N: usize> Default for FbBuildHasher<N>
impl<const N: usize> Default for FbBuildHasher<N>
§fn default() -> FbBuildHasher<N>
fn default() -> FbBuildHasher<N>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<const N: usize> Freeze for FbBuildHasher<N>
impl<const N: usize> RefUnwindSafe for FbBuildHasher<N>
impl<const N: usize> Send for FbBuildHasher<N>
impl<const N: usize> Sync for FbBuildHasher<N>
impl<const N: usize> Unpin for FbBuildHasher<N>
impl<const N: usize> UnwindSafe for FbBuildHasher<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)