Struct luaext::types::number::LuaNumber
[−]
[src]
pub struct LuaNumber { /* fields omitted */ }Represents a floating-point number on the Lua Stack
Methods
impl LuaNumber[src]
fn new(i: Index) -> LuaNumber
Create a new LuaNumber given an index
fn get(&self, context: &mut Context) -> f64
Get the value of this number
Trait Implementations
impl LuaStackable for LuaNumber[src]
fn get_pos(&self) -> Index
Get the position of this value on the stack
impl ToLua for LuaNumber[src]
fn to_lua(&self, state: &mut State)
Pushes a value of type Self onto the stack of a Lua state.