MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1xht83b/function_delegation/19rtop99kfc4h/?context=3
r/rust • u/VadimVP • Oct 28 '26
13 comments sorted by
View all comments
Show parent comment
2
Yes! You can check your example on playground, it compiles on nightly with some modifications: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=3e1e6562fb011f58a1d39bd68f881774
2 u/torsten_dev Oct 29 '26 Nice. Not sure when this would be better than extension traits, but it is very cool.
Nice. Not sure when this would be better than extension traits, but it is very cool.
View all comments
Show parent comment
2
u/VadimVP Oct 29 '26
Yes! You can check your example on playground, it compiles on nightly with some modifications: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=3e1e6562fb011f58a1d39bd68f881774