(no title)
BlackFly | 1 month ago
So then I'm forced to define a trait for the function, define a struct (the closure) to store the references I want to close over, choose the mutability and lifetimes, instantiate it manually and pass that. Then the implementation of the method (that may only be a few lines) is not located inline so readability may suffer.
tuetuopay|1 month ago
armchairhacker|1 month ago
wtetzner|1 month ago