[−][src]Trait pm_rlua::LuaRead
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
fn lua_read_with_pop(lua: *mut lua_State, index: i32, pop: i32) -> Option<Self>
Reads the data from Lua at a given position.
Provided methods
fn lua_read(lua: *mut lua_State) -> Option<Self>
Reads the data from Lua.
fn lua_read_at_position(lua: *mut lua_State, index: i32) -> Option<Self>
Reads the data from Lua at a given position.
Implementations on Foreign Types
impl<T> LuaRead for Vec<T> where
T: LuaRead,
[src]
T: LuaRead,
impl<A: LuaRead, B: LuaRead, C: LuaRead, D: LuaRead, E: LuaRead, F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (A, B, C, D, E, F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
impl<B: LuaRead, C: LuaRead, D: LuaRead, E: LuaRead, F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (B, C, D, E, F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(B, C, D, E, F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(B, C, D, E, F, G, H, I, J, K, L, M)>
impl<C: LuaRead, D: LuaRead, E: LuaRead, F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (C, D, E, F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(C, D, E, F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(C, D, E, F, G, H, I, J, K, L, M)>
impl<D: LuaRead, E: LuaRead, F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (D, E, F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(D, E, F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(D, E, F, G, H, I, J, K, L, M)>
impl<E: LuaRead, F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (E, F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(E, F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(E, F, G, H, I, J, K, L, M)>
impl<F: LuaRead, G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (F, G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(F, G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(F, G, H, I, J, K, L, M)>
impl<G: LuaRead, H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (G, H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(G, H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(G, H, I, J, K, L, M)>
impl<H: LuaRead, I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (H, I, J, K, L, M)
[src]
fn lua_read_with_pop(
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(H, I, J, K, L, M)>
[src]
lua: *mut lua_State,
index: i32,
_pop: i32
) -> Option<(H, I, J, K, L, M)>
impl<I: LuaRead, J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (I, J, K, L, M)
[src]
impl<J: LuaRead, K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (J, K, L, M)
[src]
impl<K: LuaRead, L: LuaRead, M: LuaRead> LuaRead for (K, L, M)
[src]
impl<L: LuaRead, M: LuaRead> LuaRead for (L, M)
[src]
impl<M> LuaRead for (M,) where
M: LuaRead,
[src]
M: LuaRead,