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
459
March 23, 2021
Move a boxed function inside a closure
help
10
2623
January 12, 2023
Differences between calling closures from Box<FnOnce()> and Box<Fn()>
help
4
3437
January 12, 2023
Why don't Box<Fn> and &mut Fn implement Fn like &Fn does?
8
1043
January 12, 2023
How to implement FnOnce
help
7
3719
January 12, 2023