Lua.VM.Display.NativeFunc (Lua v1.0.0-rc.0)
View SourceDisplay wrapper for a native Elixir-backed Lua function
({:native_func, fun}) returned across the Lua.eval!/2 boundary.
Carries the underlying function so the Inspect impl can render
the captured module/function/arity, falling back to the fun's
default inspect output for anonymous functions.
Fields
:fun— the Elixir function passed toLua.set!/3or installed viadeflua.:ref— the original{:native_func, fun}tuple so callers can still pass it back toLua.call_function/3.
The wrap fires in both decode: true and decode: false modes —
raw {:native_func, fun} tuples have always leaked to the user.
Internal pattern matches against {:native_func, _} are unaffected.