pub trait ToLua: Sized {
// Provided method
fn to_lua<'a>(self, lua: &'a State) -> Result<ValRef<'a>> { ... }
}Expand description
Trait for types that can be pushed onto the stack of a Lua
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.