I have stuck with this issue where I pass a reference to function(e.g. fn_1) to another function(fn_2) and call fn_1 inside fn_2 with a variable created inside fn_2. The Issue is fn_1 takes references and hence I have to provide lifetimes. But I can't find way to get past this error.
Below is a small snippet shows what I am trying to do.
Please! If anyone can help me.