Trait hlua::AsMutLua

source ·
pub unsafe trait AsMutLua<'lua>: AsLua<'lua> {
    // Required method
    fn as_mut_lua(&mut self) -> LuaContext;
}
Expand description

Trait for objects that have access to a Lua context. You are allowed to modify the stack, but it must be in the same state as it was when you started.

Required Methods§

source

fn as_mut_lua(&mut self) -> LuaContext

Returns the raw Lua context.

Implementations on Foreign Types§

source§

impl<'a, 'lua, L> AsMutLua<'lua> for &'a mut L
where L: AsMutLua<'lua> + ?Sized,

Implementors§

source§

impl<'a, 'lua> AsMutLua<'lua> for &'a mut InsideCallback

source§

impl<'lua> AsMutLua<'lua> for Lua<'lua>

source§

impl<'lua, L> AsMutLua<'lua> for LuaFunction<L>
where L: AsMutLua<'lua>,

source§

impl<'lua, L> AsMutLua<'lua> for LuaTable<L>
where L: AsMutLua<'lua>,

source§

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

source§

impl<'lua, T, L> AsMutLua<'lua> for UserdataOnStack<T, L>
where L: AsMutLua<'lua>, T: 'lua + Any,

source§

impl<'t, 'lua, L, K, V> AsMutLua<'lua> for LuaTableIterator<'t, L, K, V>
where L: AsMutLua<'lua>,