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
By enabling the consts feature on typenum, we get access to the U<const N: usize> type. And this is what lets us write a single implementation for From and for Into that will work for all lengths!
The text was updated successfully, but these errors were encountered:
Currently I am working around this in my own code by transmuting directly (as the current hard-coded implementations of From/Into do as well) which works, but is hacky as it makes my code deeply dependent on the internals of this crate.
Currently, these implementations are hard-coded for certain array lengths.
This was necessary on old Rust versions in which
But since v1.47 this is no longer the case.
By enabling the
consts
feature ontypenum
, we get access to theU<const N: usize>
type. And this is what lets us write a single implementation for From and for Into that will work for all lengths!The text was updated successfully, but these errors were encountered: