Dusty Pomerleau on Nostr: Orphan rules prevent me from writing a blanket implementation of `From` for `Option` ...
Orphan rules prevent me from writing a blanket implementation of `From` for `Option` types, but I don’t really understand why. Since my implementation doesn’t touch the underlying implementation of `From` for `U`, I feel like I should be able to get away with this.
#RustLang
Published at
2024-07-29 23:40:31Event JSON
{
"id": "64965ff347d5d1933fbe20c772653b8d98f5c13f9c44651c55c47edec94437cf",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1722296431,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/112872418913426905",
"activitypub"
]
],
"content": "Orphan rules prevent me from writing a blanket implementation of `From` for `Option` types, but I don’t really understand why. Since my implementation doesn’t touch the underlying implementation of `From` for `U`, I feel like I should be able to get away with this.\n\n#RustLang\n\nhttps://cdn.fosstodon.org/media_attachments/files/112/872/418/720/847/740/original/a6575b433db18b1f.png",
"sig": "0a736844d67d9a026f61737069dc1be214514a74336d8ab14e44f97266c20182ffac94db3eeaa0a742d49316cbfee44189fd557e350574117d9d230db9472145"
}