Struct rustc_data_structures::stable_hasher::StableHasher [] [src]

pub struct StableHasher<W> { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

When hashing something that ends up affecting properties like symbol names, we want these symbol names to be calculated independently of other factors like what architecture you're compiling from.

To that end we always convert integers to little-endian format before hashing and the architecture dependent isize and usize types are extended to 64 bits if needed.

Methods

impl<W: StableHasherResult> StableHasher<W>
[src]

[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl<W> StableHasher<W>
[src]

[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

[src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl<W: StableHasherResult> Debug for StableHasher<W>
[src]

[src]

Formats the value using the given formatter.

impl<W> Hasher for StableHasher<W>
[src]

[src]

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

[src]

Writes some data into this Hasher. Read more

[src]

Writes a single u8 into this hasher.

[src]

Writes a single u16 into this hasher.

[src]

Writes a single u32 into this hasher.

[src]

Writes a single u64 into this hasher.

[src]

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

Writes a single u128 into this hasher.

[src]

Writes a single usize into this hasher.

[src]

Writes a single i8 into this hasher.

[src]

Writes a single i16 into this hasher.

[src]

Writes a single i32 into this hasher.

[src]

Writes a single i64 into this hasher.

[src]

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

Writes a single i128 into this hasher.

[src]

Writes a single isize into this hasher.