Struct FixedState
pub struct FixedState { /* private fields */ }Expand description
A BuildHasher for fast::FoldHasher that always has the same fixed seed.
Not recommended unless you absolutely need determinism.
Implementations§
§impl FixedState
impl FixedState
pub const fn with_seed(per_hasher_seed: u64) -> FixedState
pub const fn with_seed(per_hasher_seed: u64) -> FixedState
Creates a FixedState with the given per-hasher-seed.
Trait Implementations§
§impl BuildHasher for FixedState
impl BuildHasher for FixedState
§impl Clone for FixedState
impl Clone for FixedState
§fn clone(&self) -> FixedState
fn clone(&self) -> FixedState
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 more§impl Debug for FixedState
impl Debug for FixedState
§impl Default for FixedState
impl Default for FixedState
§fn default() -> FixedState
fn default() -> FixedState
Returns the “default value” for a type. Read more
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