pub trait FromLua<'lua>: Sized {
// Required method
fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>;
}
Expand description
Trait for types convertible from Value
.
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'lua, K: Eq + Hash + FromLua<'lua>, V: FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashMap<K, V, S>
impl<'lua, K: Eq + Hash + FromLua<'lua>, V: FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashMap<K, V, S>
source§impl<'lua, T: Eq + Hash + FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashSet<T, S>
impl<'lua, T: Eq + Hash + FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashSet<T, S>
Implementors§
impl<'lua> FromLua<'lua> for Error
impl<'lua> FromLua<'lua> for Value<'lua>
impl<'lua> FromLua<'lua> for AnyUserData<'lua>
impl<'lua> FromLua<'lua> for Function<'lua>
impl<'lua> FromLua<'lua> for LightUserData
impl<'lua> FromLua<'lua> for OwnedAnyUserData
Available on crate feature
unstable
and non-crate feature send
only.impl<'lua> FromLua<'lua> for OwnedFunction
Available on crate feature
unstable
and non-crate feature send
only.impl<'lua> FromLua<'lua> for OwnedString
Available on crate feature
unstable
and non-crate feature send
only.impl<'lua> FromLua<'lua> for OwnedTable
Available on crate feature
unstable
and non-crate feature send
only.impl<'lua> FromLua<'lua> for OwnedThread
Available on crate feature
unstable
and non-crate feature send
only.