store

Function store 

Source
pub fn store<F, A, R, E>(fun: F) -> c_int
where F: Fn(A) -> Result<R, E> + 'static, A: Poppable, R: Pushable, E: Error + 'static,
Expand description

Stores a function in the Lua registry, returning its ref.