macro_rules! product_type {
($factor: ty) => {
Hlist![$factor]
};
($($factor: ty),*) => {
Hlist![$( $factor, )*]
};
($($factor: ty),*,) => {
Hlist![$( $factor, )*]
};
}
macro_rules! product_pack {
($factor: expr) => {
hlist![$factor]
};
($($factor: expr),*) => {
hlist![$( $factor ),*]
};
($($factor: expr),*,) => {
hlist![$( $factor ),*]
};
}
macro_rules! product_unpack {
($factor: pat) => {
hlist_pat![$factor]
};
($($factor: pat),*) => {
hlist_pat![$( $factor ),*]
};
($($factor: pat),*,) => {
hlist_pat![$( $factor ),*]
};
}