Trait tlua::Call

source ·
pub trait Call<L>: AsRef<Object<L>>where
    L: AsLua,{
    // Provided methods
    fn call<'lua, R>(&'lua self) -> Result<R, LuaError>
       where L: 'lua,
             R: LuaRead<PushGuard<&'lua L>> { ... }
    fn call_with<'lua, A, R>(
        &'lua self,
        args: A
    ) -> Result<R, CallError<A::Err>>
       where L: 'lua,
             A: PushInto<LuaState>,
             R: LuaRead<PushGuard<&'lua L>> { ... }
    fn into_call<R>(self) -> Result<R, LuaError>
       where Self: AsLua + Sized,
             R: LuaRead<PushGuard<Self>> { ... }
    fn into_call_with<A, R>(self, args: A) -> Result<R, CallError<A::Err>>
       where Self: AsLua + Sized,
             A: PushInto<LuaState>,
             R: LuaRead<PushGuard<Self>> { ... }
}

Provided Methods§

source

fn call<'lua, R>(&'lua self) -> Result<R, LuaError>where L: 'lua, R: LuaRead<PushGuard<&'lua L>>,

source

fn call_with<'lua, A, R>(&'lua self, args: A) -> Result<R, CallError<A::Err>>where L: 'lua, A: PushInto<LuaState>, R: LuaRead<PushGuard<&'lua L>>,

source

fn into_call<R>(self) -> Result<R, LuaError>where Self: AsLua + Sized, R: LuaRead<PushGuard<Self>>,

source

fn into_call_with<A, R>(self, args: A) -> Result<R, CallError<A::Err>>where Self: AsLua + Sized, A: PushInto<LuaState>, R: LuaRead<PushGuard<Self>>,

Implementors§

source§

impl<L> Call<L> for Callable<L>where L: AsLua,

source§

impl<L> Call<L> for LuaFunction<L>where L: AsLua,