External Publication
Visit Post

F-pattern_types : Subsets enums using as

Rust Internals [Unofficial] March 4, 2026
Source

DragonDev1906:

That's mostly a question of whether you want to allow getting a &mut MyError from a MyErrorSubset or &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

Loading comments...