Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions