pub struct FxHasher { /* private fields */ }Expand description
A non-cryptographic hasher: rotate, xor, multiply, per word.
Not collision-resistant, and not seeded. See the module docs for which keys may and may not use it. Deterministic across runs and across machines, which is a property this workspace happens to want elsewhere too — nothing in a golden or a scoreboard may depend on a hash order, and with a fixed hasher a map iteration that accidentally did would at least fail reproducibly rather than one run in ten.
Trait Implementations§
impl Copy for FxHasher
Source§impl Hasher for FxHasher
impl Hasher for FxHasher
Source§fn write_usize(&mut self, n: usize)
fn write_usize(&mut self, n: usize)
Writes a single
usize into this hasher.1.26.0 · Source§fn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single
u128 into this hasher.1.26.0 · Source§fn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single
i128 into this hasher.1.3.0 · Source§fn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single
isize into this hasher.Source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
🔬This is a nightly-only experimental API. (
hasher_prefixfree_extras)Writes a length prefix into this hasher, as part of being prefix-free. Read more
Auto Trait Implementations§
impl Freeze for FxHasher
impl RefUnwindSafe for FxHasher
impl Send for FxHasher
impl Sync for FxHasher
impl Unpin for FxHasher
impl UnsafeUnpin for FxHasher
impl UnwindSafe for FxHasher
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