In this post, we will see how to resolve Cannot borrow
*self. How to make the fn work without string cloning?
And yes, I really need the
Best Answer:You can wrap your strings in
Rcthat way you can cheaply
Rcand have something owned so you don’t reference the original struct:
Rc::get_mutor wrap further in
Solution to the original underspecified question:
The most straight forward solution is to just remove the
If you have better answer, please add a comment about this, thank you!