Hacker News new | ask | show | jobs
by theemathas 16 days ago
Some ideas to add to your crate:

* Non-fused iterators, implementing FusedIterator

* Iterators that, when cloned, produce an iterator with a different set of elements

* DoubleEndedIterator which is inconsistent when iterated from each end

* A trait such that cloning a Box<dyn Trait> produces a value with a different concrete type inside

* A Display type that always produces an error from fmt()

* A Display type that replaces the Formatter with a different one

* A type that always hashes to different values.

1 comments

Thanks, noted (without much immediate thought, so it's possible some of these can't be done)