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
3089
September 24, 2022
[Pre-RFC] Inferred Enum Type
language design
61
5473
May 16, 2022
Pre-RFC: Using existing structs and tuple-structs as enum variants
language design
40
5230
March 25, 2019
Elliding type in matching an Enum
language design
19
7672
March 25, 2019
Auto infer namespaces on struct and enum instantiations
language design
45
4804
November 22, 2021