Macro obfstr::hash[][src]

macro_rules! hash {
    ($s:expr) => { ... };
}

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);