#[repr(C)]pub struct LuaDebug {
pub name: *const c_char,
pub what: *const c_char,
pub source: *const c_char,
pub short_src: *const c_char,
pub linedefined: c_int,
pub currentline: c_int,
pub nupvals: c_uchar,
pub nparams: c_uchar,
pub isvararg: c_char,
pub userdata: *mut c_void,
pub ssbuf: [c_char; 256],
}Fields§
§name: *const c_charField ‘n’
Name of the current function
what: *const c_charSet by field ‘s’
Returns the “kind” of execution
Values are: “Luau”, “C”, “main”, “tail”
source: *const c_charSet by field ‘s’
The source (chunkname) of an error.
Tf the error is from a C function will be set to ‘=[C]’
short_src: *const c_charSet by field ‘s’
Truncated form of the chunkname with some additional formatting rules not exceeding LUA_IDSIZE in length
linedefined: c_intSet by field ‘s’
The line on which the function was defined
currentline: c_intSet by field ‘l’
Returns the current line in execution
nupvals: c_ucharSet by field ‘u’
The number of upvalues for the function
nparams: c_ucharSet by field ‘a’
The number of params accepted by the function
isvararg: c_charSet by field ‘a’
1 if the function is a vararg function
0 if it is not
userdata: *mut c_voidUserdata field for lua_Debug
Is only valid for luau_callhook
ssbuf: [c_char; 256]Buffer used for short_src operation
Auto Trait Implementations§
impl Freeze for LuaDebug
impl RefUnwindSafe for LuaDebug
impl !Send for LuaDebug
impl !Sync for LuaDebug
impl Unpin for LuaDebug
impl UnsafeUnpin for LuaDebug
impl UnwindSafe for LuaDebug
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more