Trait td_rlua::LuaRead [] [src]

pub trait LuaRead: Sized {
    fn lua_read_with_pop(
        lua: *mut lua_State,
        index: i32,
        pop: i32
    ) -> Option<Self>; fn lua_read(lua: *mut lua_State) -> Option<Self> { ... } fn lua_read_at_position(lua: *mut lua_State, index: i32) -> Option<Self> { ... } }

Types that can be obtained from a Lua context.

Most types that implement LuaPush also implement LuaRead, but this is not always the case (for example &'static str implements LuaPush but not LuaRead).

Required Methods

Reads the data from Lua at a given position.

Provided Methods

Reads the data from Lua.

Reads the data from Lua at a given position.

Implementors