Closed jack-fortanix closed 5 years ago
The function bodies for State::to_str and State::to_str_in_place appear to be identical, as is their doc comment. I was just wondering what is the reason for having both.
State::to_str
State::to_str_in_place
https://github.com/jcmoyer/rust-lua53/blob/master/src/wrapper/state.rs#L1308
One uses luaL_tolstring, the other uses lua_tolstring. These have different behavior, described in the Lua manual.
luaL_tolstring
lua_tolstring
Thank you I must have missed this when comparing the functions.
The function bodies for
State::to_str
andState::to_str_in_place
appear to be identical, as is their doc comment. I was just wondering what is the reason for having both.https://github.com/jcmoyer/rust-lua53/blob/master/src/wrapper/state.rs#L1308