Hello,
I want to fill the remaining capacity of a vec with an empty value:
#[derive(Debug)]
pub(crate) enum Args<A, B, C, D, E> {
Args0(A),
Args1(B),
Args2(C),
Args3(D),
Args4(E),
}
struct Empty;
macro_rules! test {
($($value:expr),*) => {
#[test]
fn test() {
test_func(InputArgs {
args: {
let v = vec![Arg0($value0),Arg1($value1),...]; // pseudo code
// if $value count < 5 then fill with Empty struct
// (ie: Arg2(Empty{}),Args3(Empty{}),Args4(Empty{})
// for this example with 2 values submitted)
v
},
});
}
};
}
It is difficult without an index.
Thank you in advance for your help.