pub struct Debug<'lua> { /* private fields */ }Expand description
Contains information about currently executing Lua code.
The Debug structure is provided as a parameter to the hook function set with
Lua::set_hook. You may call the methods on this structure to retrieve information about the
Lua code executing at the time that the hook function was called. Further information can be
found in the Lua documentation.
Implementations
Returns the specific event that triggered the hook.
For Lua 5.1 DebugEvent::TailCall is used for return events to indicate a return
from a function that did a tail call.
Corresponds to the n what mask.
Corresponds to the S what mask.
Corresponds to the t what mask. Returns true if the hook is in a function tail call, false
otherwise.
Corresponds to the u what mask.