pub fn resolve_primitives(
        &self,
        libctx: &LibraryContext,
    ) -> Result<HashMap<Id, Signature>> {
        let mut map = HashMap::new();

        for stmt in &self.cells {
            if let Cell::Prim { data } = stmt {
                let sig = libctx
                    .resolve(&data.instance.name, &data.instance.params)?;
                map.insert(data.name.clone(), sig);
            }
        }

        Ok(map)
    }
/// Given a Library Context, resolve all the primitive components
/// in `self` and return the signatures in a HashMap
Given a Library Context, resolve all the primitive components
in `self` and return the signatures in a HashMap
Given a Library Context resolve all the primitive components in ` self ` and return the signatures in a HashMap
pub fn resolve_primitives(
        &self,
        libctx: &LibraryContext,
    ) -> Result<HashMap<Id, Signature>> {
        let mut map = HashMap::new();
        for stmt in &self.cells {
            if let Cell::Prim { data } = stmt {
                let sig = libctx
                    .resolve(&data.instance.name, &data.instance.params)?;
                map.insert(data.name.clone(), sig);
            }
        }
        Ok(map)
    }
pub fn resolve_primitives ( & self , libctx : & LibraryContext , ) -> Result < HashMap < Id , Signature > > { let mut map = HashMap :: new ( ) ; for stmt in & self . cells { if let Cell :: Prim { data } = stmt { let sig = libctx . resolve ( & data . instance . name , & data . instance . params ) ? ; map . insert ( data . name . clone ( ) , sig ) ; } } Ok ( map ) }
Given a Library Context, resolve all the primitive components
in `self` and return the signatures in a HashMap
Given a Library Context resolve all the primitive components in ` self ` and return the signatures in a HashMap
&self
libctx
&LibraryContext