store

Function store 

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

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