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. TODO(phase-b): move these to
lua_types::value (or wherever the canonical impl lives) once the type
helpers stabilise.
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".