[⌜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
Published at
2024-01-21 13:39:43Event JSON
{
"id": "2cfe231007105c8821b68543a82344e320b872e59b9f6e5455bcb99df03a5aab",
"pubkey": "77547f384c1ed812c20f34ec3fb10e425cb8208acd6e480f8a5f2173701bdf63",
"created_at": 1705840783,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://shonk.social/notes/9or1ve1j547m05hw",
"activitypub"
]
],
"content": "#rustlang how can I write an impl for an enum that has different return types, depending on the value of the enum.\nI tried so many options, even wrapping the return type in the enum itself, but then I can't really get it out",
"sig": "db61dc7889a8ce339bf60b0baa0027df009622f88443ce49c5d102bf3ba27ec55903a6cf233b56f43fd990ecf76f919a691aaf8c43e26a45a5b24b4322b2030b"
}