Skip to content

Is there a way to drain/consume HashSet? #70

@jlandahl

Description

@jlandahl

I'm trying to use papaya::HashSet to build up a set of unique objects which I want to eventually turn into a regular Vec. I'm confused that s.pin().into_iter().collect::<Vec<_>>() returns a Vec<&T> and not a Vec<T>, and I haven't been able to find anything else that returns T rather than &T. Is there any way to get back all the original objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions