pub trait PushInto<L>where
L: AsLua,{
type Err;
// Required method
fn push_into_lua(self, lua: L) -> Result<PushGuard<L>, (Self::Err, L)>;
// Provided method
fn push_into_no_err(self, lua: L) -> PushGuard<L>
where Self: Sized,
<Self as PushInto<L>>::Err: Into<Void> { ... }
}
Expand description
Types implementing this trait can be pushed onto the Lua stack by value.
Required Associated Types§
Required Methods§
sourcefn push_into_lua(self, lua: L) -> Result<PushGuard<L>, (Self::Err, L)>
fn push_into_lua(self, lua: L) -> Result<PushGuard<L>, (Self::Err, L)>
Push the value into lua by value