IntoLua

Trait IntoLua 

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

Trait for types convertible to Value.

Required Methods§

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

Performs the conversion.

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§

§

impl IntoLua for &str

§

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

§

impl IntoLua for &CStr

§

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

§

impl IntoLua for &OsStr

§

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

§

impl IntoLua for &Path

§

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

§

impl IntoLua for &BStr

§

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

§

impl IntoLua for Cow<'_, str>

§

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

§

impl IntoLua for Cow<'_, CStr>

§

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

§

impl IntoLua for bool

§

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

§

impl IntoLua for char

§

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

§

impl IntoLua for f32

§

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

§

impl IntoLua for f64

§

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

§

impl IntoLua for i8

§

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

§

impl IntoLua for i16

§

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

§

impl IntoLua for i32

§

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

§

impl IntoLua for i64

§

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

§

impl IntoLua for i128

§

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

§

impl IntoLua for isize

§

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

§

impl IntoLua for u8

§

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

§

impl IntoLua for u16

§

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

§

impl IntoLua for u32

§

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

§

impl IntoLua for u64

§

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

§

impl IntoLua for u128

§

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

§

impl IntoLua for usize

§

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

§

impl IntoLua for Box<str>

§

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

§

impl IntoLua for CString

§

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

§

impl IntoLua for String

§

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

§

impl IntoLua for OsString

§

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

§

impl IntoLua for PathBuf

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

§

impl IntoLua for &Value

§

impl IntoLua for &AnyUserData

§

impl IntoLua for &BorrowedBytes<'_>

§

impl IntoLua for &BorrowedStr<'_>

§

impl IntoLua for &Function

§

impl IntoLua for &RegistryKey

§

impl IntoLua for &ytil_noxi::mlua::String

§

impl IntoLua for &Table

§

impl IntoLua for &Thread

§

impl IntoLua for Error

§

impl IntoLua for Value

§

impl IntoLua for AnyUserData

§

impl IntoLua for BString

§

impl IntoLua for BorrowedBytes<'_>

§

impl IntoLua for BorrowedStr<'_>

§

impl IntoLua for Function

§

impl IntoLua for LightUserData

§

impl IntoLua for RegistryKey

§

impl IntoLua for ytil_noxi::mlua::String

§

impl IntoLua for Table

§

impl IntoLua for Thread

§

impl<L, R> IntoLua for Either<L, R>
where L: IntoLua, R: IntoLua,

§

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