Hi! I'm wondering if it's possible to do something like below?
// d1 would be a numeric type, d2 would be a numeric type, I want to compute the type of d3 such that
// i then want this field to be zero by default
fn Data(D1: type, D2: type) type {
// compute D3 such that the the number of bits would be 12 - ("bits for d1" + "bits for d2")
// D1 = u4, D2 = u4 -> D3 = u4
// D1 = u4, D2 = u8 -> D3 = u0
return packed struct(u12) {
d1: D1,
d2: D2,
d3: D3 = 0
}
}