Trait LuaConvert

Source
pub trait LuaConvert: Sized {
    // Required method
    fn from_lua_type(lua_type: &LuaType) -> Option<Self>;
}

Required Methods§

Source

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

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§

Source§

impl LuaConvert for bool

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Source§

impl LuaConvert for f32

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Source§

impl LuaConvert for f64

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Source§

impl LuaConvert for i32

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Source§

impl LuaConvert for i64

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Source§

impl LuaConvert for String

Source§

fn from_lua_type(lua_type: &LuaType) -> Option<Self>

Implementors§