[][src]Function rhai::calc_fn_hash

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

Calculate a u64 hash key from a module-qualified function name and parameter types.

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.