Struct mlua::Debug

source · []
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

This is supported on non-crate feature luau only.

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 l what mask. Returns the current line.

This is supported on non-crate feature luau only.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.