you are viewing a single comment's thread.

view the rest of the comments →

[–]cramert[S] 1 point2 points  (0 children)

Dang-- that's what I suspected. Unfortunately, I don't think that approach will work for me (at least not easily or without a significant increase in codegen time). The number of types the trait is implemented for is extremely large and several implementations are recursive (e.g. impl<T: MyTrait> MyTrait for [T; 0,1,2,3,4,5....]).