pub enum LuaFunction {
LuaFunc(LuaFunctionLua),
RustFunc(Box<dyn Fn(&mut LuaEnv, usize, Option<usize>) -> Result<(), RuntimeError>>),
}Expand description
lua function object
Variants§
LuaFunc(LuaFunctionLua)
functions written in Lua
RustFunc(Box<dyn Fn(&mut LuaEnv, usize, Option<usize>) -> Result<(), RuntimeError>>)
built-in functions written in Rust
Implementations§
Trait Implementations§
source§impl Debug for LuaFunction
impl Debug for LuaFunction
source§impl From<LuaFunction> for LuaValue
impl From<LuaFunction> for LuaValue
source§fn from(f: LuaFunction) -> Self
fn from(f: LuaFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LuaFunction
impl !RefUnwindSafe for LuaFunction
impl !Send for LuaFunction
impl !Sync for LuaFunction
impl Unpin for LuaFunction
impl !UnwindSafe for LuaFunction
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