Trait tlua::PushOne

source ·
pub trait PushOne<L: AsLua>: Push<L> { }
Expand description

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

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

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

Implementations on Foreign Types§

Implementors§