The rule of thumb I always tell people is that they should generally put owned data into struct fields and references into function parameters.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: