Macro tealr::create_generic_mlua
source · macro_rules! create_generic_mlua { ($visibility:vis $type_name:ident) => { ... }; }
Expand description
This macro creates a new type that acts as similar as possible to mlua::Value
however, it acts as a generic type instead of being translated as any
.
This makes it easy to expose a generic function/method to teal. ##Example
tealr::create_generic_mlua!(pub YourPublicType);
tealr::create_generic_mlua!(YourPrivateType);