pub struct LuaFunction<L> { /* private fields */ }Expand description
A handle to a global Lua function, kept by name so it can be re-fetched and
called. Mirrors hlua::LuaFunction<L> (single type parameter).
Implementations§
Source§impl<'a> LuaFunction<FnHandle<'a>>
impl<'a> LuaFunction<FnHandle<'a>>
Sourcepub fn call_with_args<V, A>(&mut self, args: A) -> Result<V, LuaError>where
A: PushArgs,
V: FromTop,
pub fn call_with_args<V, A>(&mut self, args: A) -> Result<V, LuaError>where
A: PushArgs,
V: FromTop,
Call the function with the given argument tuple and read one result.
Auto Trait Implementations§
impl<L> Freeze for LuaFunction<L>where
L: Freeze,
impl<L> RefUnwindSafe for LuaFunction<L>where
L: RefUnwindSafe,
impl<L> Send for LuaFunction<L>where
L: Send,
impl<L> Sync for LuaFunction<L>where
L: Sync,
impl<L> Unpin for LuaFunction<L>where
L: Unpin,
impl<L> UnsafeUnpin for LuaFunction<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for LuaFunction<L>where
L: UnwindSafe,
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