← All docs
hash_equals() — internals
Compiler internals for hash_equals(): lowering path, type checks, and runtime helpers.
hash_equals() — internals
Where it lives
- Signature:
src/builtins/string/hash_equals.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:264 (lower_hash_equals) - Function symbol:
lower_hash_equals()
Lowering notes
- Lowers
hash_equals(known, user)through the timing-safe runtime compare helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_hash_algos_list__rt_hash_equals__rt_hash_init
Signature summary
function hash_equals(string $known_string, string $user_string): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/hash_equals.rs(eval_builtin!) - Dispatch hooks:
direct,values