You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Decimal128 and Decimal256 are different datatype. However all of their fields have same data type except the length of the value buffer [u8; 16] or [u8; 32]. This is the situation which const_generic is very suitable.
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?[u8; 16] or [u8; 32]
. This is the situation whichconst_generic
is very suitable.const_generic
: the Array type: https://doc.rust-lang.org/std/primitive.array.htmlDecimal
is very similar toArray
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
Decimal
andDecimalArray
usingconst_generic
#2383 )Decimal
andDecimalArray
usingconst_generic
#2383 )const_generic
. #2390Describe alternatives you've considered
We could not do this.
Additional context
Related to #2362 and #2274.
The text was updated successfully, but these errors were encountered: