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.

Source§

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 DefaultHasherinstances created through new or default.

1.7.0 · Source§

1.7.0 · Source§

1.13.0 · Source§

Source§

Creates a new DefaultHasher using new. See its documentation for more.

1.13.0 · Source§

Source§

Writes some data into this Hasher. Read more

Source§

🔬This is a nightly-only experimental API. (hasher_prefixfree_extras #96762)

Writes a single str into this hasher. Read more

Source§

Returns the hash value for the values written so far. Read more

1.3.0 · Source§

Writes a single u8 into this hasher.

1.3.0 · Source§

Writes a single u16 into this hasher.

1.3.0 · Source§

Writes a single u32 into this hasher.

1.3.0 · Source§

Writes a single u64 into this hasher.

1.26.0 · Source§

Writes a single u128 into this hasher.

1.3.0 · Source§

Writes a single usize into this hasher.

1.3.0 · Source§

Writes a single i8 into this hasher.

1.3.0 · Source§

Writes a single i16 into this hasher.

1.3.0 · Source§

Writes a single i32 into this hasher.

1.3.0 · Source§

Writes a single i64 into this hasher.

1.26.0 · Source§

Writes a single i128 into this hasher.

1.3.0 · Source§

Writes a single isize into this hasher.

Source§

🔬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

§

§

§

§

§

§