Returns the name of this mutual constant.
(&self)
| 139 | impl MutConst { |
| 140 | /// Returns the name of this mutual constant. |
| 141 | pub fn name(&self) -> Name { |
| 142 | match self { |
| 143 | Self::Defn(x) => x.name.clone(), |
| 144 | Self::Recr(x) => x.cnst.name.clone(), |
| 145 | Self::Indc(x) => x.ind.cnst.name.clone(), |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /// Returns the constructors if this is an inductive, or an empty vec otherwise. |
| 150 | pub fn ctors(&self) -> Vec<ConstructorVal> { |