Skip to main content

set_i_value

Function set_i_value 

Source
pub fn set_i_value(
    state: &mut LuaState,
    t: &LuaValue,
    n: i64,
) -> Result<(), LuaError>
Expand description

Variant of set_i that accepts a pre-resolved table value instead of a stack index. Callers that invoke set_i repeatedly on the same table (e.g. the shift loops in table.remove / table.insert) should resolve the table once and use this function to avoid calling index_to_value on every iteration.