Skip to main content

hint_id_of

Function hint_id_of 

Source
pub fn hint_id_of(name: &str) -> HintId
Expand description

Derive a HintId from a hint’s name.

Hashes the name and folds the resulting 64-bit value down to 32 bits by XORing its two halves.

The hash algorithm is unspecified, so an id is stable only within one process. Never persist an id or compare one across builds.