summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2021-05-09 09:30:33 +0100
committerAlex Orlenko <zxteam@protonmail.com>2021-05-09 09:30:33 +0100
commitc9b8eb5418d942ac3b5516a9626f0f029c14b80c (patch)
tree3ca9b26ba1fcdbcfc716b28c71123bce50ff3158
parentef7d123f80dd16bc9f0a2940ae85bf351461faf7 (diff)
downloadmlua-c9b8eb5418d942ac3b5516a9626f0f029c14b80c.zip
Re-export UserDataFields/UserDataMetatable
-rw-r--r--src/lib.rs4
-rw-r--r--src/prelude.rs1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c30bae5..639c095 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -112,7 +112,9 @@ pub use crate::string::String;
pub use crate::table::{Table, TableExt, TablePairs, TableSequence};
pub use crate::thread::{Thread, ThreadStatus};
pub use crate::types::{Integer, LightUserData, Number, RegistryKey};
-pub use crate::userdata::{AnyUserData, MetaMethod, UserData, UserDataFields, UserDataMethods};
+pub use crate::userdata::{
+ AnyUserData, MetaMethod, UserData, UserDataFields, UserDataMetatable, UserDataMethods,
+};
pub use crate::value::{FromLua, FromLuaMulti, MultiValue, Nil, ToLua, ToLuaMulti, Value};
#[cfg(feature = "async")]
diff --git a/src/prelude.rs b/src/prelude.rs
index 5ec7f3e..86c247f 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -9,6 +9,7 @@ pub use crate::{
Result as LuaResult, String as LuaString, Table as LuaTable, TableExt as LuaTableExt,
TablePairs as LuaTablePairs, TableSequence as LuaTableSequence, Thread as LuaThread,
ThreadStatus as LuaThreadStatus, ToLua, ToLuaMulti, UserData as LuaUserData,
+ UserDataFields as LuaUserDataFields, UserDataMetatable as LuaUserDataMetatable,
UserDataMethods as LuaUserDataMethods, Value as LuaValue,
};