Function hlua::function0 [] [src]

pub fn function0<Z, R>(f: Z) -> Function<Z, (), R> where Z: FnMut() -> 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.