[][src]Function rhai::calc_script_fn_hash

pub fn calc_script_fn_hash<'a>(
    modules: impl Iterator<Item = &'a str>,
    fn_name: &str,
    num: usize
) -> u64

(INTERNALS) Calculate a u64 hash key from a namespace-qualified function name and the number of parameters, but no parameter types. Exported under the internals feature only.

Module names are passed in via &str references from an iterator. Parameter types are passed in via TypeId values from an iterator.

Note

The first module name is skipped. Hashing starts from the second module in the chain.