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 Stringwhere L: AsLua,

source§

impl<L> PushOneInto<L> for i32where L: AsLua,

source§

impl<L> PushOneInto<L> for f32where L: AsLua,

source§

impl<L> PushOneInto<L> for f64where L: AsLua,

source§

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

source§

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

source§

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

source§

impl<L> PushOneInto<L> for isizewhere L: AsLua,

source§

impl<L> PushOneInto<L> for u16where L: AsLua,

source§

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

source§

impl<L> PushOneInto<L> for CStringwhere L: AsLua,

source§

impl<L> PushOneInto<L> for usizewhere L: AsLua,

source§

impl<L> PushOneInto<L> for u64where L: AsLua,

source§

impl<T, E> PushOneInto<InsideCallback> for Result<T, E>where T: PushOneInto<InsideCallback>, E: Display,

source§

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

source§

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

source§

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

source§

impl<L> PushOneInto<L> for i64where L: AsLua,

source§

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

source§

impl<L> PushOneInto<L> for u32where L: AsLua,

source§

impl<L> PushOneInto<L> for i16where L: AsLua,

source§

impl<L> PushOneInto<L> for boolwhere L: AsLua,

source§

impl<L> PushOneInto<L> for u8where L: AsLua,

source§

impl<L> PushOneInto<L> for i8where L: AsLua,

Implementors§

source§

impl<L> PushOneInto<L> for AnyLuaStringwhere L: AsLua,

source§

impl<L> PushOneInto<L> for Falsewhere L: AsLua,

source§

impl<L> PushOneInto<L> for Nilwhere L: AsLua,

source§

impl<L> PushOneInto<L> for Nullwhere L: AsLua,

source§

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

source§

impl<L> PushOneInto<L> for Truewhere 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)>where LU: AsLua, A: PushInto<LuaState>, B: PushInto<LuaState>, C: PushInto<LuaState>, D: PushInto<LuaState>, E: PushInto<LuaState>, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

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)>where LU: AsLua, B: PushInto<LuaState>, C: PushInto<LuaState>, D: PushInto<LuaState>, E: PushInto<LuaState>, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

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)>where LU: AsLua, C: PushInto<LuaState>, D: PushInto<LuaState>, E: PushInto<LuaState>, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

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)>where LU: AsLua, D: PushInto<LuaState>, E: PushInto<LuaState>, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

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)>where LU: AsLua, E: PushInto<LuaState>, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

source§

impl<LU, F, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(F, G, H, I, J, K, L, M)>where LU: AsLua, F: PushInto<LuaState>, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

source§

impl<LU, G, H, I, J, K, L, M> PushOneInto<LU> for AsTable<(G, H, I, J, K, L, M)>where LU: AsLua, G: PushInto<LuaState>, H: PushInto<LuaState>, I: PushInto<LuaState>, J: PushInto<LuaState>, K: PushInto<LuaState>, L: PushInto<LuaState>, M: PushInto<LuaState>,

source§

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

source§

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

source§

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

source§

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

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>,