Skip to main content

decl_id_hash

Function decl_id_hash 

Source
pub const fn decl_id_hash(s: &str) -> u128
Expand description

Computes a DeclId hash from a string at compile time.

This is a const function that can be used to compute declaration IDs in const contexts.