Skip to content

Explain that Cow<str> is the way to borrow string if possible, copy otherwise #46

Open
@dtolnay

Description

@dtolnay

<sarnold> what do you think about calling out Cow<> in https://serde.rs/borrow.html as the solution to this issue? it's in there, but not really pointed out as magical :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions