Struct rustc_data_structures::stable_hasher::StableHasher [−][src]
pub struct StableHasher {
state: SipHasher128,
}Expand description
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.
Fields
state: SipHasher128Implementations
Trait Implementations
Writes a single u128 into this hasher.
Writes a single usize into this hasher.
Writes a single i128 into this hasher.
Writes a single isize into this hasher.
Auto Trait Implementations
impl RefUnwindSafe for StableHasherimpl Send for StableHasherimpl Sync for StableHasherimpl Unpin for StableHasherimpl UnwindSafe for StableHasherBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 120 bytes