pub struct LuaFunctionLua {
pub upvalues: Vec<Rc<RefCell<LuaValue>>>,
pub args: usize,
pub is_variadic: bool,
pub chunk: Chunk,
}Expand description
functions written in Lua
Fields§
§upvalues: Vec<Rc<RefCell<LuaValue>>>upvalues for this function object
args: usizenumber of arguments ( excluding variadic arguments )
is_variadic: boolif true, this function is variadic
chunk: ChunkTrait Implementations§
Source§impl Clone for LuaFunctionLua
impl Clone for LuaFunctionLua
Source§fn clone(&self) -> LuaFunctionLua
fn clone(&self) -> LuaFunctionLua
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LuaFunctionLua
impl !RefUnwindSafe for LuaFunctionLua
impl !Send for LuaFunctionLua
impl !Sync for LuaFunctionLua
impl Unpin for LuaFunctionLua
impl !UnwindSafe for LuaFunctionLua
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