Trait px8_plugin_lua::ToLua [] [src]

pub trait ToLua {
    fn to_lua(&self, state: &mut State);
}

Trait for types that can be pushed onto the stack of a Lua state.

It is important that implementors of this trait ensure that to_lua behaves like one of the lua_push* functions for consistency.

Required Methods

Pushes a value of type Self onto the stack of a Lua state.

Implementors