← All docs
iterator_apply() — internals
Compiler internals for iterator_apply(): lowering path, type checks, and runtime helpers.
iterator_apply() — internals
Where it lives
- Signature:
src/builtins/spl/iterator_apply.rs - Lowering:
src/codegen/lower_inst/builtins/spl.rs:290 (lower_iterator_apply) - Function symbol:
lower_iterator_apply()
Lowering notes
- Lowers
iterator_apply()over supported Traversable sources and callback forms.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function iterator_apply(traversable $iterator, callable $callback, array $args = null): int
What the type checker enforces
- Arity: takes 2–3 arguments (1 optional).