The two the comparison layer already names — SqlEnumComparison’s own doc reads “the type this
database stores the column as — a text name or an integer discriminant, whichever the field
declared” — and no third, because a third would be a form no comparison kind can lower.
Verbatim, and never cased: a stored name is a value in somebody’s database, and a mangling
rule that changed would rewrite every row. A raw identifier stores unraw’d — r#type is
type — because the r# is Rust’s way of saying the word, not part of it. The one namespace
that does case its default is the wire, for the reason Namespace::Graphql gives.
The variant’s DISCRIMINANT, at the declaration’s own width.
The declaration’s own number — Grade::High = 9 stores 9 — because the discriminant is a
number the declaration can already spell, and a second numbering invented here would disagree
with it.