pub trait IntoLuaMulti {
// Required method
fn into_lua_multi(self, runtime: &mut Runtime) -> Result<MultiValue>;
// Provided method
fn write_native(self, context: &mut NativeContext<'_>) -> Result<()>
where Self: Sized { ... }
}Expand description
Convert a sequence of arguments or results, preserving nil holes.
Required Methods§
Sourcefn into_lua_multi(self, runtime: &mut Runtime) -> Result<MultiValue>
fn into_lua_multi(self, runtime: &mut Runtime) -> Result<MultiValue>
Convert in the target runtime.
Provided Methods§
Sourcefn write_native(self, context: &mut NativeContext<'_>) -> Result<()>where
Self: Sized,
fn write_native(self, context: &mut NativeContext<'_>) -> Result<()>where
Self: Sized,
Write an immediate typed callback’s results. Scalar and tuple implementations reuse the native result window without an owned vector.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".