3 ms·
> I regret having to sacrifice API design to satisfy something of a corner case usage. A possible future alternative would be to bound the macro in some way on
by deltragon 2y ago
> I regret having to sacrifice API design to satisfy something of a corner case usage.
A possible future alternative would be to bound the macro in some way on Freeze, once that is stabilised. See the RFC for details: https://github.com/rust-lang/rfcs/pull/3633 https://github.com/rust-lang/rfcs/pull/3633
This would of course be a tradeoff again, as it would disallow interior mutability then.