• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    10 months ago

    The rule of thumb I always tell people is that they should generally put owned data into struct fields and references into function parameters.