Replies: 2 comments
|
It's a consequence of |
0 replies
|
Yeah, like @newpavlov said each trait impl provides a specific concrete Unfortunately this leads to one trait impl per size, which means the more sizes we add, the more it impacts compile times, which has been a frustrating tradeoff. See also: #66 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I may be missing something basic, but is there a reason that the implementations for the individual
Arraysizes (i.e. U2, U3, ...) are all done manually? I understand that they are generated, but that is beside the point.For the
ArrayLengthandUnsignedtraits ingeneric_arrayandtypenumrespectively the implementations are done onUInt<T, B>andUTermwhich allows any created value to automatically support the traits. In contrasthybrid_array::ArraySizeonly works for the explicitly handpicked values insizes.rs.If there is an obvious reason that this is impossible / overly complex for this crate I apologize, but if not, this would be useful to prevent future requests for the addition of custom
ArraySizes.All reactions