Struct hlua::Function [] [src]

pub struct Function<F, P, R> {
    // some fields omitted
}

Opaque type containing a Rust function or closure.

Trait Implementations

impl<L, Z, R> Push<L> for Function<Z, (), R> where L: AsMutLua, Z: FnMut() -> R, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static> Push<L> for Function<Z, (A,), R> where L: AsMutLua, Z: FnMut(A) -> R, (A,): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static> Push<L> for Function<Z, (A, B), R> where L: AsMutLua, Z: FnMut(A, B) -> R, (A, B): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static> Push<L> for Function<Z, (A, B, C), R> where L: AsMutLua, Z: FnMut(A, B, C) -> R, (A, B, C): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static> Push<L> for Function<Z, (A, B, C, D), R> where L: AsMutLua, Z: FnMut(A, B, C, D) -> R, (A, B, C, D): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> Push<L> for Function<Z, (A, B, C, D, E), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E) -> R, (A, B, C, D, E): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> Push<L> for Function<Z, (A, B, C, D, E, F), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E, F) -> R, (A, B, C, D, E, F): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> Push<L> for Function<Z, (A, B, C, D, E, F, G), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E, F, G) -> R, (A, B, C, D, E, F, G): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> Push<L> for Function<Z, (A, B, C, D, E, F, G, H), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E, F, G, H) -> R, (A, B, C, D, E, F, G, H): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> Push<L> for Function<Z, (A, B, C, D, E, F, G, H, I), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E, F, G, H, I) -> R, (A, B, C, D, E, F, G, H, I): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> Push<L> for Function<Z, (A, B, C, D, E, F, G, H, I, J), R> where L: AsMutLua, Z: FnMut(A, B, C, D, E, F, G, H, I, J) -> R, (A, B, C, D, E, F, G, H, I, J): for<'p> LuaRead<&'p mut InsideCallback>, R: for<'a> Push<&'a mut InsideCallback> + 'static
[src]

fn push_to_lua(self, lua: L) -> PushGuard<L>

Pushes the value on the top of the stack. Read more