Trait ToFunction

Source
pub trait ToFunction<A, R> {
    // Required method
    fn into_luaref(self) -> LuaRef;
}
Expand description

A trait implemented by closures and Functions.

Required Methods§

Source

fn into_luaref(self) -> LuaRef

Implementations on Foreign Types§

Source§

impl<A, R> ToFunction<A, R> for Function<A, R>

Source§

fn into_luaref(self) -> LuaRef

Implementors§

Source§

impl<A, R, F, O> ToFunction<A, R> for F
where A: Poppable, R: Pushable, F: FnMut(A) -> O + 'static, O: IntoResult<R>, O::Error: StdError + 'static,