So I was working on a larger project and ran into an issue. I ended up isolating it down to this smaller chunk of code:
What I don’t understand stand is the lifetime parameter on the return from the constructor on line 10. In this example why isn’t it 'a? From my understanding 'a is the lifetime of the the whole structure OutsideStruct and 'b is the lifetime of the parameter of the input. Since the input is cloned for the inside struct why would anything be tied to his lifetime?
Any help in understanding this would be great! Thanks!