Three-way comparison in Rust?

Hello, I couldn't find any info on this, but would it be reasonable to have three-way comparison in Rust? Or a spaceship operator <=> doesn't go with rust philosophy?

There is Ord::cmp (see Ord in core::cmp - Rust) on which the comparison operators are based. I don't think an operator is necessary.

2 Likes