The iter module has an order submodule for performing comparisons on iterators. Ideally, these would instead just be implementations of e.g. the PartialOrd trait, but that trait passes by shared reference, and iterators must be mutated to be compared.
It'd be good to explore this design space, and perhaps write an RFC, before stabilization.
cc @bluss
The
itermodule has anordersubmodule for performing comparisons on iterators. Ideally, these would instead just be implementations of e.g. thePartialOrdtrait, but that trait passes by shared reference, and iterators must be mutated to be compared.It'd be good to explore this design space, and perhaps write an RFC, before stabilization.
cc @bluss