1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use lua::{Index};

pub mod number;
pub mod string;
pub mod table;
pub mod generic;
pub mod nil;
pub mod integer;
pub mod boolean;
pub mod function;
pub mod userdata;

pub use self::number::LuaNumber;
pub use self::string::LuaString;
pub use self::table::LuaTable;
pub use self::generic::LuaGeneric;
pub use self::nil::LuaNil;
pub use self::integer::LuaInteger;
pub use self::boolean::LuaBool;
pub use self::function::LuaFunction;
pub use self::userdata::LuaUserdata;

/// Any value that can represent an Index on a Lua Stack
pub trait LuaStackable {
    /// Get the position of this value on the stack
    fn get_pos(&self) -> Index;
}