Why Nostr? What is Njump?
2024-01-21 13:39:43

[⌜Baer⌟ ⌜🍪⌟] on Nostr: #rustlang how can I write an impl for an enum that has different return types, ...

#rustlang how can I write an impl for an enum that has different return types, depending on the value of the enum.
I tried so many options, even wrapping the return type in the enum itself, but then I can't really get it out
Author Public Key
npub1wa287wzvrmvp9ss0xnkrlvgwgfwtsgy2e4hysru2tushxuqmma3sgajaq8