Trait lua_config::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>

Object Safety§

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§