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 with std::hash::DefaultHasher (fixed seed, deterministic across runs) and folds the resulting 64-bit value down to 32 bits by XORing its two halves.