luaext/types/
mod.rs

1use lua::{Index};
2
3pub mod number;
4pub mod string;
5pub mod table;
6pub mod generic;
7pub mod nil;
8pub mod integer;
9pub mod boolean;
10pub mod function;
11pub mod userdata;
12pub mod ltuserdata;
13pub mod thread;
14
15pub use self::number::LuaNumber;
16pub use self::string::LuaString;
17pub use self::table::LuaTable;
18pub use self::generic::LuaGeneric;
19pub use self::nil::LuaNil;
20pub use self::integer::LuaInteger;
21pub use self::boolean::LuaBool;
22pub use self::function::LuaFunction;
23pub use self::userdata::LuaUserdata;
24pub use self::ltuserdata::LuaLightUserdata;
25pub use self::thread::LuaThread;
26
27/// Any value that can represent an Index on a Lua Stack
28pub trait LuaStackable {
29    /// Get the position of this value on the stack
30    fn get_pos(&self) -> Index;
31}