(&self, index: TypeResourceTableIndex)
| 202 | } |
| 203 | |
| 204 | pub fn resource_type(&self, index: TypeResourceTableIndex) -> ResourceType { |
| 205 | match self.types[index] { |
| 206 | TypeResourceTable::Concrete { ty, .. } => self |
| 207 | .resources |
| 208 | .and_then(|t| t.get(ty).copied()) |
| 209 | .unwrap_or_else(|| ResourceType::uninstantiated(&self.types, ty)), |
| 210 | TypeResourceTable::Abstract(ty) => ResourceType::abstract_(&self.types, ty), |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | pub fn future_type(&self, index: TypeFutureTableIndex) -> FutureType { |
| 215 | FutureType::from(self.types[index].ty, self) |
no test coverage detected