Trait hlua::AsLua

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

Trait for objects that have access to a Lua context. When using a context returned by a AsLua, you are not allowed to modify the stack.

Required Methods§

Implementations on Foreign Types§

source§

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

source§

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

Implementors§

source§

impl<'a, 'lua> AsLua<'lua> for &'a InsideCallback

source§

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

source§

impl<'a, 'lua> AsLua<'lua> for Lua<'lua>

source§

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

source§

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

source§

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

source§

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

source§

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