Unhasher in rustc_data_structures::unhash - Rust (original) (raw)

pub struct Unhasher {
    value: u64,
}

Expand description

This no-op hasher expects only a single write_u64 call. It’s intended for map keys that already have hash-like quality, like Fingerprint.

Source§

Source§

Source§

Source§

Source§

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

Source§

Writes some data into this Hasher. Read more

Source§

Writes a single u64 into this hasher.

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.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)

Writes a length prefix into this hasher, as part of being prefix-free. Read more

Source§

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

Writes a single str into this hasher. Read more

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes