Trait tlua::PushOneInto

source ·
pub trait PushOneInto<L: AsLua>: PushInto<L> { }
Expand description

Extension trait for PushInto. Guarantees that only one element will be pushed.

This should be implemented on most types that implement PushInto, except for tuples.

Note: Implementing this trait on a type that pushes multiple elements will most likely result in panics.

Implementations on Foreign Types§

source§

impl<L> PushOneInto<L> for bool
where L: AsLua,

source§

impl<L> PushOneInto<L> for f32
where L: AsLua,

source§

impl<L> PushOneInto<L> for f64
where L: AsLua,

source§

impl<L> PushOneInto<L> for i8
where L: AsLua,

source§

impl<L> PushOneInto<L> for i16
where L: AsLua,

source§

impl<L> PushOneInto<L> for i32
where L: AsLua,

source§

impl<L> PushOneInto<L> for i64
where L: AsLua,

source§

impl<L> PushOneInto<L> for isize
where L: AsLua,

source§

impl<L> PushOneInto<L> for u8
where L: AsLua,

source§

impl<L> PushOneInto<L> for u16
where L: AsLua,

source§

impl<L> PushOneInto<L> for u32
where L: AsLua,

source§

impl<L> PushOneInto<L> for u64
where L: AsLua,

source§

impl<L> PushOneInto<L> for ()
where L: AsLua,

source§

impl<L> PushOneInto<L> for usize
where L: AsLua,

source§

impl<L> PushOneInto<L> for CString
where L: AsLua,

source§

impl<L> PushOneInto<L> for String
where L: AsLua,

source§

impl<L, K> PushOneInto<L> for HashSet<K>
where L: AsLua, K: PushOneInto<LuaState> + Eq + Hash + Debug,

source§

impl<L, K, V> PushOneInto<L> for HashMap<K, V>

source§

impl<L, T> PushOneInto<L> for Option<T>
where T: PushOneInto<L>, L: AsLua,

source§

impl<L, T> PushOneInto<L> for Vec<T>
where L: AsLua, T: PushInto<LuaState>,

source§

impl<L, T, const N: usize> PushOneInto<L> for [T; N]
where L: AsLua, T: PushInto<LuaState>,

source§

impl<LU, M> PushOneInto<LU> for (M,)
where LU: AsLua, M: PushOneInto<LU>,

source§

impl<T, E> PushOneInto<InsideCallback> for Result<T, E>

source§

impl<T, L> PushOneInto<L> for &T
where L: AsLua, T: ?Sized + PushOne<L>,

Implementors§

source§

impl<L> PushOneInto<L> for AnyLuaString
where L: AsLua,

source§

impl<L> PushOneInto<L> for False
where L: AsLua,

source§

impl<L> PushOneInto<L> for Nil
where L: AsLua,

source§

impl<L> PushOneInto<L> for Null
where L: AsLua,

source§

impl<L> PushOneInto<L> for Object<L>
where L: AsLua,

source§

impl<L> PushOneInto<L> for True
where L: AsLua,

source§

impl<L, I> PushOneInto<L> for TableFromIter<I>
where L: AsLua, I: Iterator, <I as Iterator>::Item: PushInto<LuaState>,

source§

impl<L, R> PushOneInto<L> for LuaCodeFromReader<R>
where L: AsLua, R: Read,

source§

impl<L, T> PushOneInto<L> for CData<T>
where L: AsLua, T: AsCData + Copy,

source§

impl<L, Z, R> PushOneInto<L> for Function<Z, (), R>
where L: AsLua, Z: FnMut() -> R + 'static, (): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (A, B, C, D, E, F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(A, B, C, D, E, F, G, H, I, J, K, M, N) -> R + 'static, (A, B, C, D, E, F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (B, C, D, E, F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(B, C, D, E, F, G, H, I, J, K, M, N) -> R + 'static, (B, C, D, E, F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (C, D, E, F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(C, D, E, F, G, H, I, J, K, M, N) -> R + 'static, (C, D, E, F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (D, E, F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(D, E, F, G, H, I, J, K, M, N) -> R + 'static, (D, E, F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (E, F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(E, F, G, H, I, J, K, M, N) -> R + 'static, (E, F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (F, G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(F, G, H, I, J, K, M, N) -> R + 'static, (F, G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (G, H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(G, H, I, J, K, M, N) -> R + 'static, (G, H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, H: 'static, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (H, I, J, K, M, N), R>
where L: AsLua, Z: FnMut(H, I, J, K, M, N) -> R + 'static, (H, I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, I: 'static, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (I, J, K, M, N), R>
where L: AsLua, Z: FnMut(I, J, K, M, N) -> R + 'static, (I, J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, J: 'static, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (J, K, M, N), R>
where L: AsLua, Z: FnMut(J, K, M, N) -> R + 'static, (J, K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, K: 'static, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (K, M, N), R>
where L: AsLua, Z: FnMut(K, M, N) -> R + 'static, (K, M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, M: 'static, N: 'static> PushOneInto<L> for Function<Z, (M, N), R>
where L: AsLua, Z: FnMut(M, N) -> R + 'static, (M, N): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L, Z, R, N: 'static> PushOneInto<L> for Function<Z, (N,), R>
where L: AsLua, Z: FnMut(N) -> R + 'static, (N,): for<'p> LuaRead<&'p InsideCallback>, R: PushInto<InsideCallback> + 'static,

source§

impl<L: AsLua> PushOneInto<L> for AnyHashableLuaValue

source§

impl<L: AsLua> PushOneInto<L> for AnyLuaValue

source§

impl<LU, A, B, C, D, E, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(A, B, C, D, E, F, G, H, I, J, K, L, M)>

source§

impl<LU, B, C, D, E, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(B, C, D, E, F, G, H, I, J, K, L, M)>

source§

impl<LU, C, D, E, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(C, D, E, F, G, H, I, J, K, L, M)>

source§

impl<LU, D, E, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(D, E, F, G, H, I, J, K, L, M)>

source§

impl<LU, E, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(E, F, G, H, I, J, K, L, M)>

source§

impl<LU, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(F, G, H, I, J, K, L, M)>

source§

impl<LU, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(G, H, I, J, K, L, M)>

source§

impl<LU, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(H, I, J, K, L, M)>

source§

impl<LU, I, J, K, L, M> PushOneInto<LU> for AsTable<(I, J, K, L, M)>

source§

impl<LU, J, K, L, M> PushOneInto<LU> for AsTable<(J, K, L, M)>

source§

impl<LU, K, L, M> PushOneInto<LU> for AsTable<(K, L, M)>

source§

impl<LU, L, M> PushOneInto<LU> for AsTable<(L, M)>
where LU: AsLua, L: PushInto<LuaState>, M: PushInto<LuaState>,

source§

impl<LU, M> PushOneInto<LU> for AsTable<(M,)>
where LU: AsLua, M: PushOneInto<LuaState>,