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