Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse in constant expressions #86
Comments
|
I think this is generally desired, but the only issue blocking this right now are the current limitations of |
|
@gnzlbg well, I was thinking if it's possible to provide this ability without |
|
Unfortunately, that would also require making the fields of |
Ah, I see. The answer is that it is not possible to do this "right" without Also, what are you trying to do? This sounds a lot of like XY. |
|
@gnzlbg I looked at num-traits crate, and it has quite a few interfaces that should have been |
I see. I don't think that's going to be possible for the time being :/ Offtopic: Which APIs do you mean? Most of the APIs in |
|
|
That's what I thought. Yeah it makes sense to make those (this issue should be closed and that should be discussed somewhere else) |
|
I fully agree that we should not modify SmallVec. I definitely plan to push for making most of |
It would be useful to be able to use
SmallVecin constants (long shot - havingBigIntwith associated constants forONE,ZERO, etc). This would require exposingSmallVecDataenum. Any concerns/objections?