Skip to main content

gmatch_aux

Function gmatch_aux 

Source
pub fn gmatch_aux(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

Continuation function for string.gmatch iterator closure.

PORT NOTE: C stores source, pattern, and GMatchState as three C-closure upvalues. The Rust port mirrors that shape: upvalues 1 and 2 are traced Lua strings, and upvalue 3 is a full userdata whose host payload stores only the mutable byte positions.