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
sourceimpl<'lua> Debug<'lua>
impl<'lua> Debug<'lua>
sourcepub fn names(&self) -> DebugNames<'lua>
pub fn names(&self) -> DebugNames<'lua>
Corresponds to the n
what mask.
sourcepub fn source(&self) -> DebugSource<'lua>
pub fn source(&self) -> DebugSource<'lua>
Corresponds to the S
what mask.
sourcepub fn stack(&self) -> DebugStack
pub fn stack(&self) -> DebugStack
Corresponds to the u
what mask.
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for Debug<'lua>
impl<'lua> !Send for Debug<'lua>
impl<'lua> !Sync for Debug<'lua>
impl<'lua> Unpin for Debug<'lua>
impl<'lua> !UnwindSafe for Debug<'lua>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more