Trait ezlua::convert::ToLua

source ·
pub trait ToLua: Sized {
    // Provided method
    fn to_lua<'a>(self, lua: &'a State) -> Result<ValRef<'a>> { ... }
}
Expand description

Trait for types that can be pushed onto the stack of a Lua

Provided Methods§

source

fn to_lua<'a>(self, lua: &'a State) -> Result<ValRef<'a>>

Implementations on Foreign Types§

source§

impl ToLua for Box<str>

source§

impl ToLua for usize

source§

impl ToLua for u8

source§

impl ToLua for String

source§

impl ToLua for i8

source§

impl<K: ToLua, V: ToLua> ToLua for HashMap<K, V>

source§

fn to_lua<'a>(self, s: &'a State) -> Result<ValRef<'a>>

source§

impl ToLua for &[u8]

source§

impl ToLua for ()

source§

impl<T: ToLua> ToLua for Option<T>

source§

fn to_lua<'a>(self, s: &'a State) -> Result<ValRef<'a>>

source§

impl ToLua for i64

source§

impl ToLua for u64

source§

impl ToLua for &OsStr

source§

impl ToLua for FileType

source§

fn to_lua<'a>(self, s: &'a LuaState) -> LuaResult<ValRef<'a>>

source§

impl ToLua for &str

source§

impl<T: ToLua> ToLua for Vec<T>

source§

fn to_lua<'a>(self, s: &'a State) -> Result<ValRef<'a>>

source§

impl ToLua for u32

source§

impl ToLua for bool

source§

impl ToLua for f64

source§

impl ToLua for Arc<str>

source§

impl ToLua for isize

source§

impl ToLua for &Path

source§

fn to_lua<'a>(self, s: &'a LuaState) -> Result<ValRef<'a>>

source§

impl ToLua for i16

source§

impl ToLua for Duration

source§

fn to_lua<'a>(self, s: &'a LuaState) -> LuaResult<ValRef<'a>>

source§

impl ToLua for SystemTime

source§

fn to_lua<'a>(self, s: &'a LuaState) -> Result<ValRef<'a>>

source§

impl ToLua for u16

source§

impl ToLua for Cow<'_, str>

source§

impl ToLua for PathBuf

source§

fn to_lua<'a>(self, s: &'a LuaState) -> Result<ValRef<'a>>

source§

impl ToLua for i32

source§

impl ToLua for OsString

source§

fn to_lua<'a>(self, s: &'a LuaState) -> LuaResult<ValRef<'a>>

source§

impl ToLua for f32

source§

impl ToLua for Cow<'_, [u8]>

Implementors§

source§

impl ToLua for &RegVal

source§

impl ToLua for &ValRef<'_>

source§

impl ToLua for Value<'_>

source§

impl ToLua for ArgRef

source§

impl ToLua for LuaBytes

source§

impl ToLua for CString

source§

impl ToLua for ValRef<'_>

source§

impl<'a> ToLua for Function<'a>

source§

impl<'a> ToLua for LuaString<'a>

source§

impl<'a> ToLua for LuaThread<'a>

source§

impl<'a> ToLua for LuaUserData<'a>

source§

impl<'a> ToLua for Table<'a>

source§

impl<K: ToLua, V: ToLua, I: Iterator<Item = (K, V)>> ToLua for IterMap<K, V, I>

source§

impl<T: UserData + 'static> ToLua for T

source§

impl<T: UserData<Trans = MaybePointer<T>>> ToLua for MaybePtrRef<'_, T>

source§

impl<T: Serialize> ToLua for SerdeValue<T>

source§

impl<T: ToLua, I: Iterator<Item = T>> ToLua for IterVec<T, I>

source§

impl<T: ToLuaMulti> ToLua for StaticIter<'static, T>