Skip to content

Missing methods that would be nice to have #69

@KSXGitHub

Description

@KSXGitHub
  • A .collect() that convert a parallel iterator of Result<T, E> into a Result<Vec<T>, E>. Currently, I have to call par_iter.collect::<Vec<Result<_, _>>>().into_iter().collect::<Result<Vec<_>, _>>() which is very ugly.
  • A .par_mut() that is an alias for .iter_mut().iter_into_par().
  • A .chain() method to join 2 parallel iterators.

Related PR: KSXGitHub/parallel-disk-usage#308

Related commit: KSXGitHub/parallel-disk-usage@8673323 (search for "TODO" in the diff)

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