pub struct LuaDebug<'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
sourceimpl<'a> Debug<'a>
impl<'a> Debug<'a>
sourcepub fn names(&self) -> DebugNames<'a>
pub fn names(&self) -> DebugNames<'a>
Corresponds to the n
what mask.
sourcepub fn source(&self) -> DebugSource<'a>
pub fn source(&self) -> DebugSource<'a>
Corresponds to the S
what mask.
sourcepub fn is_tail_call(&self) -> bool
pub fn is_tail_call(&self) -> bool
Corresponds to the t
what mask. Returns true if the hook is in a function tail call, false
otherwise.
sourcepub fn stack(&self) -> DebugStack
pub fn stack(&self) -> DebugStack
Corresponds to the u
what mask.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Debug<'a>
impl<'a> !Send for Debug<'a>
impl<'a> !Sync for Debug<'a>
impl<'a> Unpin for Debug<'a>
impl<'a> UnwindSafe for Debug<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more