magiclen / educe

This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.
MIT License
131 stars 11 forks source link

Implement bound(*) to mean "all generic parameters" #22

Closed ijackson closed 5 months ago

ijackson commented 8 months ago

This is new syntax, but it's old behavour: it's the behaviour of eg educe(Clone(bound)) in 0.4.x, as well as the behaviour of std. So this helps with migreation.

I'm not committed to this syntax, but it seems a reasonable choice out of the available options which don't already mean something in 0.5.x.

IMPORTANT: this branch is on top of the branch for #19. That MR should be reviewed and land first, before tackling this one. The new feature is just the top two commits here.