I had to add a lifetime parameter to AsLua and AsMutLua.
Unfortunately since the Drop impl of PushGuard requires that the template parameter of PushGuard implements AsMutLua, that means I would have to add a lifetime parameter to the PushGuard struct as well. In order to avoid that, I added a raw_lua member instead. Same for LuaTableIterator.
Eventually this PR could be "reverted" (ie. raw_lua removed) and lifetime parameters of AsLua and AsMutLua could become associated lifetimes.
Fix #77
I had to add a lifetime parameter to
AsLua
andAsMutLua
.Unfortunately since the
Drop
impl ofPushGuard
requires that the template parameter ofPushGuard
implementsAsMutLua
, that means I would have to add a lifetime parameter to thePushGuard
struct as well. In order to avoid that, I added araw_lua
member instead. Same forLuaTableIterator
.Eventually this PR could be "reverted" (ie.
raw_lua
removed) and lifetime parameters ofAsLua
andAsMutLua
could become associated lifetimes.