pub unsafe extern "C" fn replace(state: lua_State, index: i32)
Moves the top element into the given valid index without shifting any element (therefore replacing the value at that given index), and then pops the top element.