{"ast_node_type":"function","tokens":[{"end":65,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn variant(&self, name: &Name) -> Option<EnumVariantId> {
impl EnumVariants {
        self.variants.iter().find_map(|(v, n, _)| if n == name { Some(*v) } else { None })