[][src]Function pm_rlua::functions::function1

pub fn function1<Z, R, A>(f: Z) -> Function<Z, (A,), R> where
    Z: FnMut(A) -> R, 

Wraps a type that implements FnMut so that it can be used by hlua.

This is only needed because of a limitation in Rust's inferrence system.