{"ast_node_type":"function","tokens":[{"end":49,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn discriminant_ty(&self) -> Option<Ty> {
    /// Get the discriminant type for this type.
        self.rigid().map(|ty| with(|cx| cx.rigid_ty_discriminant_ty(ty)))