Struct foldhash::fast::FixedState
source · pub struct FixedState {
per_hasher_seed: u64,
}
Expand description
A BuildHasher
for fast::FoldHasher
s that all have the same fixed seed.
Not recommended unless you absolutely need determinism.
Fields§
§per_hasher_seed: u64
Implementations§
source§impl FixedState
impl FixedState
sourcepub const fn with_seed(seed: u64) -> Self
pub const fn with_seed(seed: u64) -> Self
Creates a FixedState
with the given seed.
Trait Implementations§
source§impl BuildHasher for FixedState
impl BuildHasher for FixedState
source§impl Clone for FixedState
impl Clone for FixedState
source§fn clone(&self) -> FixedState
fn clone(&self) -> FixedState
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 Debug for FixedState
impl Debug for FixedState
source§impl Default for FixedState
impl Default for FixedState
impl Copy for FixedState
Auto Trait Implementations§
impl Freeze for FixedState
impl RefUnwindSafe for FixedState
impl Send for FixedState
impl Sync for FixedState
impl Unpin for FixedState
impl UnwindSafe for FixedState
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
)