(&self, tref: &TypeRef)
| 91 | } |
| 92 | |
| 93 | pub fn for_abi_error(&self, tref: &TypeRef) -> Option<&ErrorType> { |
| 94 | match tref { |
| 95 | TypeRef::Name(nt) => self.for_name(nt), |
| 96 | TypeRef::Value { .. } => None, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | pub fn for_name(&self, nt: &NamedType) -> Option<&ErrorType> { |
| 101 | self.m.iter().find(|e| e.abi_type().name == nt.name) |
no test coverage detected