rlua 0.14.2

High level bindings to Lua 5.3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate rlua;

use rlua::*;

fn main() {
    let lua = Lua::new();
    struct Test(i32);

    let test = Test(0);

    let func = lua.create_function(|_, ()| -> Result<i32> {
        //~^ error: closure may outlive the current function, but it borrows `test`, which is owned by the current function
        Ok(test.0)
    });
}