pub trait FromLuaMulti: Sized {
// Required method
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<Self>;
}
Expand description
Required Methods§
Sourcefn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<Self>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<Self>
Performs the conversion.
In case values
contains more values than needed to perform the conversion, the excess
values should be ignored. This reflects the semantics of Lua when calling a function or
assigning values. Similarly, if not enough values are given, conversions should assume that
any missing values are nil.
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.