Macro iota_sc_hname_generator::generate_hash[][src]

generate_hash!() { /* proc-macro */ }

Calculates hash of the input string and generates the output: “0x123ABC”

Usage 1:

pub const hash_name : u32 = generate_hash!("name");

Usage 2:

enum MyEnum { Hash_Name = generate_hash!("fairroulette"); }