Mojo module
hasher
Defines the Hasher trait and default hasher implementations.
This module provides the Hasher trait for implementing hash algorithms and
default hasher instances for common use cases. The default_hasher uses AHash
for runtime hashing, while default_comp_time_hasher uses FNV-1a for
compile-time hashing.
comptime values
default_comp_time_hasher
comptime default_comp_time_hasher = Fnv1a
The default hasher for compile-time hashing.
default_hasher
comptime default_hasher = AHasher[0]
The default hasher for runtime hashing.
Traits
-
Hasher: A trait for types that can incrementally compute hash values.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!