Struct hlua::PushGuard
[−]
[src]
pub struct PushGuard<L> { /* fields omitted */ }
RAII guard for a value pushed on the stack.
You shouldn't have to manipulate this type directly unless you are fiddling with the library's internals.
Methods
impl<'lua, L> PushGuard<L> where L: AsMutLua<'lua>
[src]
fn into_inner(self) -> L
Destroys the guard, popping the value. Returns the inner part, which returns access when using by-value capture.
Trait Implementations
impl<'lua, L> AsLua<'lua> for PushGuard<L> where L: AsMutLua<'lua>
[src]
fn as_lua(&self) -> LuaContext
impl<'lua, L> AsMutLua<'lua> for PushGuard<L> where L: AsMutLua<'lua>
[src]
fn as_mut_lua(&mut self) -> LuaContext
Returns the raw Lua context.