macro_rules! hash {
($s:expr) => { ... };
}
Expand description
Compiletime string constant hash.
Helper macro guarantees compiletime evaluation of the string constant hash.
const STRING: &str = "Hello World";
assert_eq!(obfstr::hash!(STRING), 0x6E4A573D);