Peternator7 / strum

A small rust library for adding custom derives to enums
https://crates.io/crates/strum
MIT License
1.8k stars 151 forks source link

Why don't iterators created by `EnumIter` implement `ExactSizeIterator`? #372

Open jwarley opened 3 months ago

jwarley commented 3 months ago

Unless I'm missing something, it should be possible to implement this trait for any iterator created by EnumIter. Doing so would give better compatibility with common adapters like indicatif's progress bars.

Peternator7 commented 3 months ago

It does :) Code Link