← All docs
stream_supports_lock() — internals
Compiler internals for stream_supports_lock(): lowering path, type checks, and runtime helpers.
stream_supports_lock() — internals
Where it lives
- Signature:
src/builtins/io/stream_supports_lock.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:2113 (lower_stream_supports_lock) - Function symbol:
lower_stream_supports_lock()
Lowering notes
- Lowers
stream_supports_lock(stream)as true after resource unboxing.
Runtime helpers
The following runtime helpers are referenced:
__rt_stream_isatty
Signature summary
function stream_supports_lock(resource $stream): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/stream_supports_lock.rs(eval_builtin!) - Dispatch hooks:
direct,values