kpreid / exhaust

Exhaustive iteration trait in Rust
https://docs.rs/exhaust/
Apache License 2.0
13 stars 2 forks source link

Review `FlatZipMap` #43

Open kpreid opened 2 months ago

kpreid commented 2 months ago

I wrote exhaust::iteration::FlatZipMap as a helper to make it easier to implement certain patterns of iteration. I suspect that the Map part is obsolete now that factories exist, but I have not confirmed this.

kpreid commented 1 month ago

There is also the question of whether FlatZipMap should exist at all. The test of usefulness for what FlatZipMap was supposed to be is: can one write a nontrivial, non-derived implementation of Exhaust using an iterator that's primarily a composition of one or more FlatZipMaps?

The things that this can hopefully do that delegating to a derived implementation can't are: