Struct hlua::PushGuard [] [src]

pub struct PushGuard<L> where L: AsMutLua {
    // some fields omitted
}

RAII guard for a value pushed on the stack.

Methods

impl<L> PushGuard<L> where L: AsMutLua
[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<L> AsLua for PushGuard<L> where L: AsMutLua
[src]

fn as_lua(&self) -> LuaContext

impl<L> AsMutLua for PushGuard<L> where L: AsMutLua
[src]

fn as_mut_lua(&mut self) -> LuaContext

impl<L> Drop for PushGuard<L> where L: AsMutLua
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more