Hacker News new | ask | show | jobs
by comex 2563 days ago
If a Rust closure doesn’t actually close over any variables, it can be coerced to a function pointer. Otherwise, you’re stuck with the workarounds others have mentioned.