Struct hlua::UserdataOnStack
[−]
[src]
pub struct UserdataOnStack<T, L> { /* fields omitted */ }
Represents a user data located inside the Lua context.
Trait Implementations
impl<'lua, T, L> LuaRead<L> for UserdataOnStack<T, L> where
L: AsMutLua<'lua> + AsLua<'lua>,
T: 'lua + Any,
[src]
L: AsMutLua<'lua> + AsLua<'lua>,
T: 'lua + Any,
fn lua_read_at_position(lua: L, index: i32) -> Result<UserdataOnStack<T, L>, L>
Reads the data from Lua at a given position.
fn lua_read(lua: L) -> Result<Self, L>
Reads the data from Lua.
impl<'lua, T, L> Deref for UserdataOnStack<T, L> where
L: AsLua<'lua>,
T: 'lua + Any,
[src]
L: AsLua<'lua>,
T: 'lua + Any,
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<'lua, T, L> DerefMut for UserdataOnStack<T, L> where
L: AsMutLua<'lua>,
T: 'lua + Any,
[src]
L: AsMutLua<'lua>,
T: 'lua + Any,
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value