Trait FromLua
Other items inmlua::prelude
pub trait FromLua<'lua>: Sized { fn from_lua(lua_value: Value<'lua>, lua: &'lua Lua) -> Result<Self>; }
Trait for types convertible from Value.
Value
fn from_lua(lua_value: Value<'lua>, lua: &'lua Lua) -> Result<Self>
Performs the conversion.
impl<'lua> FromLua<'lua> for bool
fn from_lua(v: Value<'lua>, _: &'lua Lua) -> Result<Self>
impl<'lua> FromLua<'lua> for StdString
fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>
impl<'lua> FromLua<'lua> for Box<str>
impl<'lua> FromLua<'lua> for CString
impl<'lua> FromLua<'lua> for BString
impl<'lua> FromLua<'lua> for i8
impl<'lua> FromLua<'lua> for u8
impl<'lua> FromLua<'lua> for i16
impl<'lua> FromLua<'lua> for u16
impl<'lua> FromLua<'lua> for i32
impl<'lua> FromLua<'lua> for u32
impl<'lua> FromLua<'lua> for i64
impl<'lua> FromLua<'lua> for u64
impl<'lua> FromLua<'lua> for i128
impl<'lua> FromLua<'lua> for u128
impl<'lua> FromLua<'lua> for isize
impl<'lua> FromLua<'lua> for usize
impl<'lua> FromLua<'lua> for f32
impl<'lua> FromLua<'lua> for f64
impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Box<[T]>
fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self>
impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Vec<T>
impl<'lua, K: Eq + Hash + FromLua<'lua>, V: FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashMap<K, V, S>
impl<'lua, K: Ord + FromLua<'lua>, V: FromLua<'lua>> FromLua<'lua> for BTreeMap<K, V>
impl<'lua, T: Eq + Hash + FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashSet<T, S>
impl<'lua, T: Ord + FromLua<'lua>> FromLua<'lua> for BTreeSet<T>
impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Option<T>
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 String<'lua>
impl<'lua> FromLua<'lua> for Table<'lua>
impl<'lua> FromLua<'lua> for Thread<'lua>
impl<'lua, T: 'static + UserData + Clone> FromLua<'lua> for T