diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-05-09 09:30:33 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-05-09 09:30:33 +0100 |
commit | c9b8eb5418d942ac3b5516a9626f0f029c14b80c (patch) | |
tree | 3ca9b26ba1fcdbcfc716b28c71123bce50ff3158 | |
parent | ef7d123f80dd16bc9f0a2940ae85bf351461faf7 (diff) | |
download | mlua-c9b8eb5418d942ac3b5516a9626f0f029c14b80c.zip |
Re-export UserDataFields/UserDataMetatable
-rw-r--r-- | src/lib.rs | 4 | ||||
-rw-r--r-- | src/prelude.rs | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -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, }; |