DefaultHasher in std::hash - Rust (original) (raw)
Struct DefaultHasher
1.76.0 · Source
pub struct DefaultHasher(/* private fields */);
Expand description
The default Hasher used by RandomState.
The internal algorithm is not specified, and so it and its hashes should not be relied upon over releases.
1.13.0 · Source
Creates a new DefaultHasher
.
This hasher is not guaranteed to be the same as all otherDefaultHasher
instances, but is the same as all other DefaultHasher
instances created through new
or default
.
Creates a new DefaultHasher
using new. See its documentation for more.
Writes some data into this Hasher
. Read more
🔬This is a nightly-only experimental API. (hasher_prefixfree_extras
#96762)
Writes a single str
into this hasher. Read more
Returns the hash value for the values written so far. Read more
Writes a single u8
into this hasher.
Writes a single u16
into this hasher.
Writes a single u32
into this hasher.
Writes a single u64
into this hasher.
Writes a single u128
into this hasher.
Writes a single usize
into this hasher.
Writes a single i8
into this hasher.
Writes a single i16
into this hasher.
Writes a single i32
into this hasher.
Writes a single i64
into this hasher.
Writes a single i128
into this hasher.
Writes a single isize
into this hasher.
🔬This is a nightly-only experimental API. (hasher_prefixfree_extras
#96762)
Writes a length prefix into this hasher, as part of being prefix-free. Read more