macro_rules! union {
($($typ: expr),*) => { ... };
}
Expand description
Helper to create a union type
:NOTE: This is a work in progress macro
ยงExample
use mlua_extras::{union, typed::Type};
union!("string", "number", "nil", Type::array(Type::single("string")))