pub struct Function {
pub source: String,
pub line_start: Int,
pub line_end: Int,
pub num_params: u8,
pub is_vararg: bool,
pub max_stack_size: u8,
pub code: Vec<Instruction>,
pub constants: Vec<Constant>,
pub upvalues: Vec<Upvalue>,
pub protos: Vec<Function>,
pub debug: Debug,
}Expand description
A Lua function prototype.
Fields§
§source: StringThe source filename of the function. May be empty.
line_start: IntThe start line number of the function.
line_end: IntThe end line number of the function.
num_params: u8The number of fixed parameters the function takes.
is_vararg: boolWhether the function accepts a variable number of arguments.
max_stack_size: u8The number of registers needed by the function.
code: Vec<Instruction>The function’s code.
constants: Vec<Constant>The function’s constant table.
upvalues: Vec<Upvalue>The upvalue information of the function.
protos: Vec<Function>The function’s contained function prototypes.
debug: DebugDebugging information for the function.
Trait Implementations§
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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