What is Nostr?
Gabriel Pettier /
npub1z6h…vkkr
2023-12-07 22:39:28
in reply to nevent1q…6d93

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

npub129gvast08lj986yftn7q5qlnj8yfqufxx0m33s9u5xssjm8c64rsve4kwg (npub129g…4kwg) 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