Skip to main content

enum_declaring

Function enum_declaring 

Source
pub fn enum_declaring(name: &str) -> Option<&'static BuiltinSchema>
Expand description

The builtin enum that declares the case name, if one does.

This is what lets a bare Some(value) arm say which enum a match is over without a list of its own: the two builtin enums are the two entries with cases, and a case name belongs to at most one of them.