Open sanbox-irl opened 9 months ago
The easy and composable thing would be to assume all type parameters are Query
s and do <'a, SpriteLike = &'a Sprite>
and pub sprite: SpriteLike
. The general case, including your example as written, probably requires allowing the user to specify custom bounds.
On second thought, if we just pass through the bounds specified on the type, we can probably handle all cases gracefully.
Basically I'd love this to work:
I'll take a look in the macro to see how tough it would be, but I suspect not terribly difficult, but not sure!