The Rust Programming Language Forum
Can I call a Box<FnOnce()>?
xnor
June 1, 2020, 4:44pm
4
5 years later, the trait FnBox isn't in the stdlib (unstable or not).
How do we do this these days?
show post in topic
Related topics
Topic
Replies
Views
Activity
Impl FnOnce for own Box implementation
2
429
March 23, 2021
Move a boxed function inside a closure
help
10
2571
January 12, 2023
Differences between calling closures from Box<FnOnce()> and Box<Fn()>
help
4
3396
January 12, 2023
Why don't Box<Fn> and &mut Fn implement Fn like &Fn does?
8
998
January 12, 2023
Trait T is not implemented for Box<dyn T>. How to solve?
help
11
305
July 5, 2025