|
|
|
|
|
by lifthrasiir
3325 days ago
|
|
I guess that is a particularly bad use case of specialization, which itself is proposed as an RFC [1] and approved for implementation. It would look pretty similar to, say, C++'s `vector<T>` and `vector<bool>` split, because it does something more than what it should do. Probably the better solution is to merge PartialOrd and Ord, as the benefit from having two traits has been always unclear (I personally have no strong opinion against or for that though). [1] https://github.com/rust-lang/rfcs/blob/master/text/1210-impl... |
|