Lua - Rust interop API
pub struct LuaTntContext
impl LuaTntContext {
get() -> &self;
call_func(&self, name: &str, args: &LuarFunctionArgs) -> Result<LuaFunctionReturnValues>;
}
// Args to pass to Lua functions.
pub struct LuaFunctionArgs;
impl LuaFunctionArgs {
pub fn add(&self, LuaValue);
}
pub struct LuaFunctionReturnValues
// Result of Lua function call.
impl LuaFunctionReturnValues {
pub fn count(&self) -> int;
pub fn getAt(&self) -> LuaValue;
}
// Lua object (String, Integer, Float, Table, etc.)
pub LuaValue;
Edited by Alexey Protsenko