Trait rlua::ToLua

source ·
pub trait ToLua<'lua>: Sized {
    // Required method
    fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>;
}
Expand description

Trait for types convertible to Value.

Required Methods§

source

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

Performs the conversion.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'lua> IntoLua<'lua> for &str

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for &CStr

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for &BStr

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for Cow<'_, str>

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for Cow<'_, CStr>

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for bool

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for f32

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for f64

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for i8

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for i16

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for i32

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for i64

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for i128

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for isize

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for u8

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for u16

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for u32

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for u64

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for u128

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for usize

source§

fn into_lua(self, _: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for CString

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for String

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua> IntoLua<'lua> for BString

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua, T> IntoLua<'lua> for &[T]
where T: IntoLua<'lua> + Clone,

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua, T> IntoLua<'lua> for Option<T>
where T: IntoLua<'lua>,

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua, T> IntoLua<'lua> for Vec<T>
where T: IntoLua<'lua>,

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

impl<'lua, T, S> IntoLua<'lua> for HashSet<T, S>
where T: Eq + Hash + IntoLua<'lua>, S: BuildHasher,

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

source§

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

source§

fn into_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>

Implementors§

source§

impl<'lua> IntoLua<'lua> for &AnyUserData<'lua>

source§

impl<'lua> IntoLua<'lua> for &Function<'lua>

source§

impl<'lua> IntoLua<'lua> for &RegistryKey

source§

impl<'lua> IntoLua<'lua> for &rlua::String<'lua>

source§

impl<'lua> IntoLua<'lua> for &Table<'lua>

source§

impl<'lua> IntoLua<'lua> for &Thread<'lua>

source§

impl<'lua> IntoLua<'lua> for Error

source§

impl<'lua> IntoLua<'lua> for Value<'lua>

source§

impl<'lua> IntoLua<'lua> for AnyUserData<'lua>

source§

impl<'lua> IntoLua<'lua> for Function<'lua>

source§

impl<'lua> IntoLua<'lua> for LightUserData

source§

impl<'lua> IntoLua<'lua> for rlua::String<'lua>

source§

impl<'lua> IntoLua<'lua> for Table<'lua>

source§

impl<'lua> IntoLua<'lua> for Thread<'lua>

source§

impl<'lua, T> IntoLua<'lua> for T
where T: UserData + MaybeSend + 'static,