Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Why I prefer using const_generic on Decimal?
Will the rewriting leads to many API changes?
Yes, But for users, the answer is no. Because this is just an internal refactor.
Checked List
Describe alternatives you've considered
We could not do this.
Additional context
Related to #2362 and #2274.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Why I prefer using
const_genericon Decimal?[u8; 16] or [u8; 32]. This is the situation whichconst_genericis very suitable.const_generic: the Array type: https://doc.rust-lang.org/std/primitive.array.htmlDecimalis very similar toArrayWill the rewriting leads to many API changes?
Yes, But for users, the answer is no. Because this is just an internal refactor.
Checked List
DecimalandDecimalArrayusingconst_generic#2383 )DecimalandDecimalArrayusingconst_generic#2383 )const_generic. #2390Describe alternatives you've considered
We could not do this.
Additional context
Related to #2362 and #2274.