pub struct FixedState { /* private fields */ }
Expand description
A BuildHasher
for fast::FoldHasher
s that all have the same fixed seed.
Not recommended unless you absolutely need determinism.
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
)