Retrieve the `err` type parameter for this `result`.
(&self)
| 532 | |
| 533 | /// Retrieve the `err` type parameter for this `result`. |
| 534 | pub fn err(&self) -> Option<Type> { |
| 535 | Some(Type::from( |
| 536 | self.0.types[self.0.index].err.as_ref()?, |
| 537 | &self.0.instance(), |
| 538 | )) |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | impl PartialEq for ResultType { |