Macro mlua_extras::union
source · 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")))