Trait rlua::ToLua
[−]
[src]
pub trait ToLua<'a> { fn to_lua(self, lua: &'a Lua) -> LuaResult<LuaValue<'a>>; }
Trait for types convertible to LuaValue
Required Methods
Implementors
impl<'lua> ToLua<'lua> for LuaValue<'lua>
impl<'lua> ToLua<'lua> for LuaString<'lua>
impl<'lua> ToLua<'lua> for LuaTable<'lua>
impl<'lua> ToLua<'lua> for LuaFunction<'lua>
impl<'lua> ToLua<'lua> for LuaUserData<'lua>
impl<'lua> ToLua<'lua> for LuaThread<'lua>
impl<'lua, T: LuaUserDataType> ToLua<'lua> for T
impl<'lua> ToLua<'lua> for bool
impl<'lua> ToLua<'lua> for LightUserData
impl<'lua> ToLua<'lua> for String
impl<'lua, 'a> ToLua<'lua> for &'a str
impl<'lua> ToLua<'lua> for i8
impl<'lua> ToLua<'lua> for u8
impl<'lua> ToLua<'lua> for i16
impl<'lua> ToLua<'lua> for u16
impl<'lua> ToLua<'lua> for i32
impl<'lua> ToLua<'lua> for u32
impl<'lua> ToLua<'lua> for i64
impl<'lua> ToLua<'lua> for u64
impl<'lua> ToLua<'lua> for isize
impl<'lua> ToLua<'lua> for usize
impl<'lua> ToLua<'lua> for f32
impl<'lua> ToLua<'lua> for f64
impl<'lua, T: ToLua<'lua>> ToLua<'lua> for Vec<T>
impl<'lua, T: Eq + Hash + ToLua<'lua>> ToLua<'lua> for HashSet<T>
impl<'lua, T: Ord + ToLua<'lua>> ToLua<'lua> for BTreeSet<T>
impl<'lua, K: Eq + Hash + ToLua<'lua>, V: ToLua<'lua>> ToLua<'lua> for HashMap<K, V>
impl<'lua, K: Ord + ToLua<'lua>, V: ToLua<'lua>> ToLua<'lua> for BTreeMap<K, V>
impl<'lua, T: ToLua<'lua>> ToLua<'lua> for Option<T>