Match formatting class.
Match objects collect all the information needed to emit a Rust
expression, automatically deduplicating overlapping identical arms.
Note that this class is ignorant of Rust types, and considers two fields with the same name to be equivalent. BTreeMap/BTreeSet are used to represent the arms in order to make the order deterministic.
arms: BTreeMap<(Vec<String>, String), BTreeSet<String>>§
The clause for the placeholder pattern _.
Create a new match statement on
Add an arm that reads fields to the Match statement.
Adds an arm that doesn’t read anythings from the fields to the Match statement.
Auto Trait Implementations§
Returns the argument unchanged.