Question: Is there no way to put statically defined named functions with all of them having the same signature in a collection type without using &dyn Fn or Box<dyn Fn>? My guess is no just want to make sure
-
-
functions are global and thus don't count as capturing. You can access any other `static` from a closure and it is still castable to a function pointer. Only things captured from a runtime scope need to be considered as capturable
-
I can't seem to get it to work. What am I missing? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b18b70f4bfd9adf3f5c5b107f37c4243 …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.