mlua/src
kyren b6bc8d0bed Make the `Scope` lifetimes more sensible
Avoids messy lifetime issues when interacting with other handle types with scope
produced values.

The whole lifetime situation with 'lua on most methods could actually probably
use some looking at, I'm sure it probably has lots of less than optimal
decisions in it.

This also adds a proper comment to the 'scope lifetime to explain that the key
is that 'scope needs to be invariant to make things safe.  Disregard my previous
commit message, the real problem is that I had a poor understanding of lifetime
variance / invaraince.
2018-02-08 18:45:07 -05:00
..
conversion.rs Lots of changes, not sure if actually safe yet. 2018-02-06 20:53:25 -05:00
error.rs Don't panic on mismatched `RegistryKey` use, instead return error 2018-02-06 10:51:39 -05:00
ffi.rs Lots of changes, not sure if actually safe yet. 2018-02-06 20:53:25 -05:00
function.rs more reorganization in an attempt to shrink the size of lua.rs 2017-12-04 01:04:12 -05:00
lib.rs export accidentally hidden `Scope` type 2018-02-08 01:54:30 -05:00
lua.rs Make the `Scope` lifetimes more sensible 2018-02-08 18:45:07 -05:00
macros.rs Don't panic with "rlua internal error" message on panics that are not internal 2018-02-07 17:05:00 -05:00
multi.rs more reorganization in an attempt to shrink the size of lua.rs 2017-12-04 01:04:12 -05:00
prelude.rs export accidentally hidden `Scope` type 2018-02-08 01:54:30 -05:00
string.rs auto formatting 2017-12-16 17:46:32 -05:00
table.rs Lots of changes, not sure if actually safe yet. 2018-02-06 20:53:25 -05:00
tests.rs This SHOULD fix the lifetime problem with scope... but it doesn't! 2018-02-08 05:12:11 -05:00
thread.rs auto formatting 2017-12-16 17:46:32 -05:00
types.rs Make the `Scope` lifetimes more sensible 2018-02-08 18:45:07 -05:00
userdata.rs Don't panic with "rlua internal error" message on panics that are not internal 2018-02-07 17:05:00 -05:00
util.rs Don't panic with "rlua internal error" message on panics that are not internal 2018-02-07 17:05:00 -05:00
value.rs more reorganization in an attempt to shrink the size of lua.rs 2017-12-04 01:04:12 -05:00