Call

Trait 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>>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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