{"ast_node_type":"function","tokens":[{"end":41,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn num_variants(&self) -> usize {
    /// The number of variants in this ADT.
        with(|cx| cx.adt_variants_len(*self))