/// All of the (unique) types used as the first result value of a function.
All of the (unique) types used as the first result value of a function.
All of the ( unique ) types used as the first result value of a function .
pub fn error_types<'a>(&'a self) -> impl Iterator<Item = TypeRef> + 'a {
        let errors: HashSet<TypeRef> = self
            .modules()
            .flat_map(|m| {
                m.funcs()
                    .filter_map(|f| f.results.get(0).as_ref().map(|r| r.tref.clone()))
                    .collect::<HashSet<TypeRef>>()
            })
            .collect();
        errors.into_iter()
    }
pub fn error_types < ' a > ( & ' a self ) -> impl Iterator < Item = TypeRef > + ' a { let errors : HashSet < TypeRef > = self . modules ( ) . flat_map ( | m | { m . funcs ( ) . filter_map ( | f | f . results . get ( 0 ) . as_ref ( ) . map ( | r | r . tref . clone ( ) ) ) . collect :: < HashSet < TypeRef > > ( ) } ) . collect ( ) ; errors . into_iter ( ) }
All of the (unique) types used as the first result value of a function.
All of the ( unique ) types used as the first result value of a function .
&'a self