3 ms·
The "return function as result" is being worked on: https://github.com/rust-lang/rfcs/pull/1305 https://github.com/rust-lang/rfcs/pull/1305
by heinrich5991 11y ago
The "return function as result" is being worked on: https://github.com/rust-lang/rfcs/pull/1305 https://github.com/rust-lang/rfcs/pull/1305
- masklinn 11y agoTechnically it already works, but you have to either return an actual function, or return a boxed closure (because trait object)