diff options
author | kyren <kerriganw@gmail.com> | 2017-07-24 07:12:52 -0400 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2017-07-24 07:12:52 -0400 |
commit | c7d2311c6a00d686113a35a4f7692704f39182f8 (patch) | |
tree | f6c0e646bdf8036feabd584733e907a6b32b571e /src/lib.rs | |
parent | 8f044755dcdc91837a3d53e7ec25b95c9d836b20 (diff) | |
download | mlua-c7d2311c6a00d686113a35a4f7692704f39182f8.zip |
Do several more Lua prefix renames, add prelude module
Rename the following:
LuaNil => Nil
LuaExternalError => ExternalError
LuaExternalResult => ExternalResult
LuaCallback => Callback (internal only)
Use qualified re-exports at the top of the module.
Add a new public 'prelude' module which re-exports everything with a
non-conflicting name (Adds back the Lua prefix), and is meant to be imported
unqualified.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -12,6 +12,10 @@ mod multi; #[cfg(test)] mod tests; -pub use error::*; -pub use lua::*; -pub use multi::*; +pub use error::{Error, Result, ExternalError, ExternalResult}; +pub use lua::{Value, Nil, ToLua, FromLua, MultiValue, ToLuaMulti, FromLuaMulti, Integer, Number, + LightUserData, String, Table, TablePairs, TableSequence, Function, ThreadStatus, + Thread, MetaMethod, UserDataMethods, UserData, AnyUserData, Lua}; +pub use multi::Variadic; + +pub mod prelude; |