Why Nostr? What is Njump?
2023-12-07 22:39:28
in reply to

Gabriel Pettier on Nostr: npub129gva…e4kwg but i needed that to be able to implement Ord for the type, which ...

but i needed that to be able to implement Ord for the type, which i needed to sort my struct using that type.

I resorted to reuse a method i had built to convert each to a number of points, leveraging it to use the integer comparison.

impl PartialEq for HandTypes {
fn eq(&self, other: &Self) -> bool {
self.to_num() == other.to_num()
}
}
Author Public Key
npub1z6h5ea33t4guw849r47xkar6zj3qptv76fk6239rknlnwfhc24nq9dvkkr