Trait mlua::FromLua

source ·
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§

source

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

Performs the conversion.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'lua> FromLua<'lua> for bool

source§

fn from_lua(v: Value<'lua>, _: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for f32

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for f64

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for i8

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for i16

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for i32

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for i64

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for i128

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for isize

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for u8

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for u16

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for u32

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for u64

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for u128

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for usize

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for Box<str>

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for CString

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for String

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua> FromLua<'lua> for BString

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua, K: Eq + Hash + FromLua<'lua>, V: FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashMap<K, V, S>

source§

fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self>

source§

impl<'lua, K: Ord + FromLua<'lua>, V: FromLua<'lua>> FromLua<'lua> for BTreeMap<K, V>

source§

fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self>

source§

impl<'lua, T, const N: usize> FromLua<'lua> for [T; N]
where T: FromLua<'lua>,

source§

fn from_lua(value: Value<'lua>, _lua: &'lua Lua) -> Result<Self>

source§

impl<'lua, T: Eq + Hash + FromLua<'lua>, S: BuildHasher + Default> FromLua<'lua> for HashSet<T, S>

source§

fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self>

source§

impl<'lua, T: Ord + FromLua<'lua>> FromLua<'lua> for BTreeSet<T>

source§

fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self>

source§

impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Option<T>

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Box<[T]>

source§

fn from_lua(value: Value<'lua>, lua: &'lua Lua) -> Result<Self>

source§

impl<'lua, T: FromLua<'lua>> FromLua<'lua> for Vec<T>

source§

fn from_lua(value: Value<'lua>, _lua: &'lua Lua) -> Result<Self>

Implementors§

source§

impl<'lua> FromLua<'lua> for Error

source§

impl<'lua> FromLua<'lua> for Value<'lua>

source§

impl<'lua> FromLua<'lua> for AnyUserData<'lua>

source§

impl<'lua> FromLua<'lua> for Function<'lua>

source§

impl<'lua> FromLua<'lua> for LightUserData

source§

impl<'lua> FromLua<'lua> for OwnedAnyUserData

Available on crate feature unstable and non-crate feature send only.
source§

impl<'lua> FromLua<'lua> for OwnedFunction

Available on crate feature unstable and non-crate feature send only.
source§

impl<'lua> FromLua<'lua> for OwnedString

Available on crate feature unstable and non-crate feature send only.
source§

impl<'lua> FromLua<'lua> for OwnedTable

Available on crate feature unstable and non-crate feature send only.
source§

impl<'lua> FromLua<'lua> for OwnedThread

Available on crate feature unstable and non-crate feature send only.
source§

impl<'lua> FromLua<'lua> for RegistryKey

source§

impl<'lua> FromLua<'lua> for mlua::String<'lua>

source§

impl<'lua> FromLua<'lua> for Table<'lua>

source§

impl<'lua> FromLua<'lua> for Thread<'lua>

source§

impl<'lua, T: 'static> FromLua<'lua> for UserDataRef<'lua, T>

source§

impl<'lua, T: 'static> FromLua<'lua> for UserDataRefMut<'lua, T>