kpreid / exhaust

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

Add `Factory` and remove `Clone` bound on Exhaust (breaking change). #33

Closed kpreid closed 2 months ago

kpreid commented 2 months ago

Fixes:

Does part of:

Conflicts with #20 a bit; the introduction of Factory distinct from Self means that overriding Iterator::position() would not work naively without specialization, but that is not essential.