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