Module type Hash_intf.Builtin_intf
include Builtin_hash_fold_intf
val hash_fold_nativeint : nativeint folder
val hash_fold_int64 : int64 folder
val hash_fold_int32 : int32 folder
val hash_fold_char : char folder
val hash_fold_int : int folder
val hash_fold_bool : bool folder
val hash_fold_string : string folder
val hash_fold_float : float folder
val hash_fold_unit : unit folder
val hash_fold_option : 'a folder -> 'a option folder
val hash_fold_list : 'a folder -> 'a list folder
val hash_fold_lazy_t : 'a folder -> 'a lazy_t folder
val hash_fold_ref_frozen : 'a folder -> 'a Base__.Import0.ref folder
Hash support for
array
andref
is provided, but is potentially DANGEROUS, since it incorporates the current contents of the array/ref into the hash value. Because of this we add a_frozen
suffix to the function name.Hash support for
string
is also potentially DANGEROUS, but strings are mutated less often, so we don't append_frozen
to it.Also note that we don't support
bytes
.
include Builtin_hash_intf
val hash_nativeint : nativeint -> hash_value
val hash_int64 : int64 -> hash_value
val hash_int32 : int32 -> hash_value
val hash_char : char -> hash_value
val hash_int : int -> hash_value
val hash_bool : bool -> hash_value
val hash_string : string -> hash_value
val hash_float : float -> hash_value
val hash_unit : unit -> hash_value