pub struct FunctionInfo {
pub name: Option<String>,
pub source: Option<String>,
pub short_src: Option<String>,
pub line_defined: Option<i64>,
pub last_line_defined: Option<i64>,
pub what: String,
pub num_upvalues: u8,
pub num_params: u8,
pub is_vararg: bool,
}Expand description
Debug information about a Function. Mirrors mlua::debug::FunctionInfo
(the subset Luau reports).
Fields§
§name: Option<String>The function’s name, if known (Luau records the call-site name).
source: Option<String>The chunk source name (e.g. "=[C]" for native functions).
short_src: Option<String>A short, human-readable source description.
line_defined: Option<i64>The line where the function was defined, if it is a Lua function.
last_line_defined: Option<i64>The last line of the function’s definition. Always None in Luau.
what: String"Lua", "C", or "main".
num_upvalues: u8The number of upvalues.
num_params: u8The number of fixed parameters.
is_vararg: boolWhether the function is variadic.
Trait Implementations§
Source§impl Clone for FunctionInfo
impl Clone for FunctionInfo
Source§fn clone(&self) -> FunctionInfo
fn clone(&self) -> FunctionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionInfo
impl Debug for FunctionInfo
Source§impl Default for FunctionInfo
impl Default for FunctionInfo
Source§fn default() -> FunctionInfo
fn default() -> FunctionInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Send for FunctionInfo
impl Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnsafeUnpin for FunctionInfo
impl UnwindSafe for FunctionInfo
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