pub trait FromLua<'lua>: Sized {
// Required method
fn from_lua(
lua_value: Value<'lua>,
lua: Context<'lua>,
) -> Result<Self, Error>;
}
Expand description
Trait for types convertible from Value
.
Required 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.