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

pub struct StableHasher<W> { /* fields omitted */ }

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]

impl<W> StableHasher<W>
[src]

Trait Implementations

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

Formats the value using the given formatter. Read more

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

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

Writes some data into this Hasher. 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.

Auto Trait Implementations

impl<W> Send for StableHasher<W> where
    W: Send

impl<W> Sync for StableHasher<W> where
    W: Sync