Retrieve the names of the cases of this `enum` in declaration order.
(&self)
| 475 | |
| 476 | /// Retrieve the names of the cases of this `enum` in declaration order. |
| 477 | pub fn names(&self) -> impl ExactSizeIterator<Item = &str> { |
| 478 | self.0.types[self.0.index] |
| 479 | .names |
| 480 | .iter() |
| 481 | .map(|name| name.deref()) |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | impl PartialEq for Enum { |
no test coverage detected