Struct luaext::types::integer::LuaInteger
[−]
[src]
pub struct LuaInteger { /* fields omitted */ }Represents an integer on the Lua Stack
Methods
impl LuaInteger[src]
fn new(i: Index) -> LuaInteger
Create a new LuaInteger given an index
fn get(&self, context: &mut Context) -> i64
Get the value of this integer
Trait Implementations
impl LuaStackable for LuaInteger[src]
fn get_pos(&self) -> Index
Get the position of this value on the stack
impl ToLua for LuaInteger[src]
fn to_lua(&self, state: &mut State)
Pushes a value of type Self onto the stack of a Lua state.
impl FromLua for LuaInteger[src]
fn from_lua(state: &mut State, index: Index) -> Option<LuaInteger>
Converts the value on top of the stack of a Lua state to a value of type Option<Self>. Read more