Replies: 2 comments
-
It's a consequence of |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I may be missing something basic, but is there a reason that the implementations for the individual
Arraysize
s (i.e. U2, U3, ...) are all done manually? I understand that they are generated, but that is beside the point.For the
ArrayLength
andUnsigned
traits ingeneric_array
andtypenum
respectively the implementations are done onUInt<T, B>
andUTerm
which allows any created value to automatically support the traits. In contrasthybrid_array::ArraySize
only 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
ArraySize
s.Beta Was this translation helpful? Give feedback.
All reactions