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