[][src]Function rhai::calc_native_fn_hash

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

(INTERNALS) Calculate a u64 hash key from a namespace-qualified function name and 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.