Skip to content

Clone trait - more insight as to when and where to clone or borrow. #224

Open
@topliceanu

Description

@topliceanu

As a beginner rust dev, when I have the problem of getting some data to a function, I'm having issues deciding whether to use clone() and when to borrow.

In section 04_traits/11_clone can you add some advice for this problem.
I'm also curious when using clone is idiomatic rust and when it isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions