F-pattern_types : Subsets enums using as
Rust Internals [Unofficial]
March 4, 2026
DragonDev1906:
That's mostly a question of whether you want to allow getting a
&mut MyErrorfrom aMyErrorSubsetor&mut MyErrorSubset, right?
Even whether you can get a &MyError, since that needs to be dereferencable for the full size of the enum.
Discussion in the ATmosphere