jit_macros::jit_union!
[−]
[src]
macro_rules! jit_union( ($($name:ident: $ty:ty),*) => ({ let union = Type::new_union(&mut [ $(&get::<$ty>()),* ]); union.set_names(&[$(stringify!($name)),*]); union }); ($($ty:ty),+ ) => ( Type::new_union(&mut [ $(&get::<$ty>()),* ]) ) );
Construct a JIT union with the fields given