Skip to content

Support for TryFrom::try_from on the items of iterator #913

Open
@schneiderfelipe

Description

@schneiderfelipe

It would be nice to have a map_try_into similar to map_into already implemented (in #288, requested in #280). The signature would be something like

fn map_try_into<T>(self) -> impl Iterator<Item = Result<T, <Self::Item as TryInto<T>>::Error>>
where
    Self::Item: TryInto<T>,
{
    std::iter::from_fn(|| todo!())
}

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