Iterates over types of function parameters and names.
(&self)
| 952 | |
| 953 | /// Iterates over types of function parameters and names. |
| 954 | pub fn params(&self) -> impl ExactSizeIterator<Item = (&str, Type)> + '_ { |
| 955 | let ty = &self.0.types[self.0.index]; |
| 956 | self.0.types[ty.params] |
| 957 | .types |
| 958 | .iter() |
| 959 | .zip(&ty.param_names) |
| 960 | .map(|(ty, name)| (name.as_str(), Type::from(ty, &self.0.instance()))) |
| 961 | } |
| 962 | |
| 963 | /// Iterates over types of function results |
| 964 | pub fn results(&self) -> impl ExactSizeIterator<Item = Type> + '_ { |
no test coverage detected