pub fn create(state: &mut LuaState) -> Result<usize, LuaError>Expand description
table.create(nseq [, nrec]) — Lua 5.5 addition
(specs/research/5.5-upstream-delta.md §5, ltablib.c).
Preallocates a table with nseq array (sequence) slots and nrec hash
(record) slots, returning the empty table. Preallocation is purely a
capacity hint; the returned table is observably empty (length 0, no keys),
so this implementation is behaviorally faithful even though our
create_table may treat the sizes as advisory.
Registered into the table roster only under lua_types::LuaVersion::V55
(see open_table); absent under 5.1-5.4, matching upstream.