Module rustc_data_structures::intern
source · [−]Modules
private 🔒
Structs
A reference to a value that is interned, and is known to be unique.
A helper type that you can wrap round your own type in order to automatically
cache the stable hash on creation and not recompute it whenever the stable hash
of the type is computed.
This is only done in incremental mode. You can also opt out of caching by using
StableHash::ZERO for the hash, in which case the hash gets computed each time.
This is useful if you have values that you intern but never (can?) use for stable
hashing.
Traits
A helper trait so that
Interned
things can cache stable hashes reproducibly.