Return the singleton type represented by self. Can only call on typesets containing 1 type.
(&self)
| 518 | |
| 519 | /// Return the singleton type represented by self. Can only call on typesets containing 1 type. |
| 520 | fn get_singleton(&self) -> ValueType { |
| 521 | let mut types = self.concrete_types(); |
| 522 | assert_eq!(types.len(), 1); |
| 523 | types.remove(0) |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | impl fmt::Debug for TypeSet { |