pub trait FromLuaValue: Sized {
// Required method
fn from_lua_value(v: Value) -> Result<Self, LuaError>;
}Expand description
Decode a Value into a typed Rust value. Strict — no implicit
coercions beyond what Lua itself does (an exactly-integral float
can stand in for an integer).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".