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]

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]

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

Returns the raw Lua context.

impl<L> Drop for PushGuard<L>
[src]

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