pub trait IntoLua {
// Required method
fn into_lua(self, state: &mut LuaState) -> Result<usize, String>;
}Expand description
Convert a Rust type into a LuaValue and push it.
Implementors define how self becomes one or more Lua values on the stack.
Returns the number of values pushed (typically 1, or 0 for ()).