Question: I want to construct a factory function for a class B, which needs a callback. The factory function gives a lambda to B, but this lambda needs an instance of another class A, which I want to create inside ...

Question: Is it possible to specify a generic lifetime on FnMut in Rust for a function like this? Right now I’m getting an error, that return is incompatible with FRet. Answer: Your code has several issues. One is that you ...