Skip to main content

LuaValueExt

Trait LuaValueExt 

Source
pub trait LuaValueExt {
    // Required methods
    fn base_type(&self) -> LuaType;
    fn to_number_no_strconv(&self) -> Option<f64>;
    fn to_number_with_strconv(&self) -> Option<f64>;
    fn to_integer_no_strconv(&self) -> Option<i64>;
    fn to_integer_with_strconv(&self) -> Option<i64>;
    fn full_type_tag(&self) -> u8;
}
Expand description

Extension methods on LuaValue, kept in lua-vm alongside LuaState rather than in lua_types::value.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§