pub trait ToLua: Sized {
// Required method
fn push_to_stack(self, state: &State);
// Provided method
fn to_value(self, state: &State) -> Value { ... }
}Required Methods§
Sourcefn push_to_stack(self, state: &State)
fn push_to_stack(self, state: &State)
Pushes the value onto the Lua stack.
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.