Rust Internals
Bring enum variants in scope for patterns
Nokel81
April 8, 2020, 3:16am
14
I guess another option is to allow the following:
match x { _::VarA => {}, ... }
8 Likes
show post in topic
Related Topics
Topic
Replies
Views
Activity
Enum path inference with `_Variant` syntax
22
2707
September 24, 2022
Elide the enum name on match
language design
6
804
December 13, 2022
[Pre-RFC] Inferred Enum Type
language design
61
4552
May 16, 2022
Short enum variant syntax in some cases
9
2154
December 27, 2020
Revisit: Types for enum variants
language design
6
2056
March 25, 2019