dusk-network / microkelvin

Mozilla Public License 2.0
16 stars 6 forks source link

`MaxKey` should implement `PartialOrd<K>` #52

Closed vlopes11 closed 3 years ago

vlopes11 commented 3 years ago

The purpose of a max key annotation is to compare to some given key to implement the data structure logic.

Since we don't have a native implementation of PartialOrd<K>, then it is always mandatory to add unrelated boilerplate code on the data structure implementations.

The implementation of a generic PartialOrd is trivial and should

ureeves commented 3 years ago

MaxKey already implements PartialOrd<K>