Struct rlua::Debug

source · []
pub struct Debug<'a> { /* 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 5.4 documentaton.

Implementations

Corresponds to the n what mask.

Corresponds to the S what mask.

Corresponds to the l what mask. Returns the current line.

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.