Skip to content

Interacting with Cow? #363

Open
Open
@SpriteOvO

Description

@SpriteOvO

Are there existing ways or future plans to support something like this?

let _: Cow<'a, [T]> = Cow::Owned(smallvec![])

I found an answer on StackOverflow, but it would be handy if smallvec had it built in.

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