Struct hlua_badtouch::InsideCallback
[−]
[src]
pub struct InsideCallback { /* fields omitted */ }
Opaque type that represents the Lua context when inside a callback.
Some types (like Result
) can only be returned from a callback and not written inside a
Lua variable. This type is here to enforce this restriction.
Trait Implementations
impl Debug for InsideCallback
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a, 'lua> AsLua<'lua> for &'a InsideCallback
[src]
fn as_lua(&self) -> LuaContext
[src]
impl<'a, 'lua> AsLua<'lua> for &'a mut InsideCallback
[src]
fn as_lua(&self) -> LuaContext
[src]
impl<'a, 'lua> AsMutLua<'lua> for &'a mut InsideCallback
[src]
fn as_mut_lua(&mut self) -> LuaContext
[src]
Returns the raw Lua context.
impl<'a, T, E, P> Push<&'a mut InsideCallback> for Result<T, E> where
T: Push<&'a mut InsideCallback, Err = P> + for<'b> Push<&'b mut &'a mut InsideCallback, Err = P>,
E: Display,
[src]
T: Push<&'a mut InsideCallback, Err = P> + for<'b> Push<&'b mut &'a mut InsideCallback, Err = P>,
E: Display,
type Err = P
Error that can happen when pushing a value.
fn push_to_lua(
self,
lua: &'a mut InsideCallback
) -> Result<PushGuard<&'a mut InsideCallback>, (P, &'a mut InsideCallback)>
[src]
self,
lua: &'a mut InsideCallback
) -> Result<PushGuard<&'a mut InsideCallback>, (P, &'a mut InsideCallback)>
Pushes the value on the top of the stack. Read more
fn push_no_err<E>(self, lua: L) -> PushGuard<L> where
Self: Sized,
Self: Push<L, Err = E>,
E: Into<Void>,
[src]
Self: Sized,
Self: Push<L, Err = E>,
E: Into<Void>,
Same as push_to_lua
but can only succeed and is only available if Err
is Void
.
impl<'a, T, E, P> PushOne<&'a mut InsideCallback> for Result<T, E> where
T: PushOne<&'a mut InsideCallback, Err = P> + for<'b> PushOne<&'b mut &'a mut InsideCallback, Err = P>,
E: Display,
[src]
T: PushOne<&'a mut InsideCallback, Err = P> + for<'b> PushOne<&'b mut &'a mut InsideCallback, Err = P>,
E: Display,