Skip to content

Make std::ranges be IntoIterator #348

Open
@danakj

Description

@danakj

To do this, we need to be able to implement IntoIterator for any type. That means it can't be a structural concept, but needs to be done through template specialization or whatever.

We should keep the into_iter() methods on types that are IntoIterator for convenience when you have the concrete type, but generic code would want to sus::iter::into_iter(x) instead. Then it can do so on a std::range.

Then sus::iter::from_range() can go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designDesign of the library systems as a whole, such as conceptsstd-compatCompatibility with std library types or concepts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions