Peternator7 / strum

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

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

Open jwarley opened 1 month ago

jwarley commented 1 month 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 1 month ago

It does :) Code Link