pub struct FbBuildHasher<const N: usize> { /* private fields */ }
Available on crate feature
map
only.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§
Source§impl<const N: usize> BuildHasher for FbBuildHasher<N>
impl<const N: usize> BuildHasher for FbBuildHasher<N>
Source§impl<const N: usize> Clone for FbBuildHasher<N>
impl<const N: usize> Clone for FbBuildHasher<N>
Source§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 moreSource§impl<const N: usize> Debug for FbBuildHasher<N>
impl<const N: usize> Debug for FbBuildHasher<N>
Source§impl<const N: usize> Default for FbBuildHasher<N>
impl<const N: usize> Default for FbBuildHasher<N>
Source§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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes