tinymist_std

Module hash

Source
Expand description

The hash extension module. It provides extra concepts like Fingerprint and HashedTrait.

Structs§

Traits§

Functions§

  • A convenience function for when you need a quick 32-bit hash.
  • A convenience function for when you need a quick 64-bit hash.
  • Calculate a 128-bit siphash of a value. Currently, this function use [SipHasher13] as the underlying hash algorithm.
  • 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.

Type Aliases§