Macro tealr::create_generic_rlua
source · macro_rules! create_generic_rlua { ($visibility:vis $type_name:ident) => { ... }; }
Expand description
This macro creates a new type that acts as similar as possible to rlua::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_rlua!(pub YourPublicType);
tealr::create_generic_rlua!(YourPrivateType);