pub fn item_hash128<T: Hash + 'static>(item: &T) -> u128
Expand description
This function provides a hash function for items, which also includes a type
id as part of the hash. Note: This function is not stable across different
versions of typst-ts, so it is preferred to be always used in memory.
Currently, this function use [SipHasher13
] as the underlying hash
algorithm.