pub trait FromLua<'lua>: Sized {
// Required method
fn from_lua(lua_value: Value<'lua>, lua: &'lua 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.
Implementations on Foreign Types§
Implementors§
impl<'a> FromLua<'a> for GetLineResult
Available on crate feature
vim
only.impl<'a> FromLua<'a> for ChannelInfo<'a>
Available on crate features
vim
and unstable
only.impl<'a> FromLua<'a> for EvalStatuslineRes
Available on crate features
vim
and unstable
only.impl<'a> FromLua<'a> for HighlightInfo
Available on crate features
vim
and unstable
only.impl<'a> FromLua<'a> for Mapping<'a>
Available on crate features
vim
and unstable
only.