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
Current behaviour is that From<uN> is implemented for all sizes of BUint<N>, but if e.g. a. U80 was created (with the u8_digit Cargo feature enabled), then this would not be ideal, as From<u128> could fail, and so the conversion trait should be TryFrom instead.
This could be implemented using bounds on N, but unfortunately it would rely on the unstable and incomplete nightly feature generic_const_exprs. For now, I think that is the only solution.
The text was updated successfully, but these errors were encountered:
Current behaviour is that
From<uN>
is implemented for all sizes ofBUint<N>
, but if e.g. a.U80
was created (with theu8_digit
Cargo feature enabled), then this would not be ideal, asFrom<u128>
could fail, and so the conversion trait should beTryFrom
instead.This could be implemented using bounds on
N
, but unfortunately it would rely on the unstable and incomplete nightly featuregeneric_const_exprs
. For now, I think that is the only solution.The text was updated successfully, but these errors were encountered: