pub fn instantiate_primitive<S: AsRef<str>>(
        &self,
        name: S,
        id: &ast::Id,
        params: &[u64],
    ) -> Result<Component> {
        let sig = self.library_context.resolve(id, params)?;
        Ok(Component::from_signature(name, sig))
    }
/// Creates a concrete instance of a primitive component.
/// Because primitive components can take in parameters, this
/// function attempts to resolve supplied parameters with a
/// primitive component to create a concrete component.
///
/// # Arguments
///   * `name` - the type of primitive component to instance
///   * `id` - the identifier for the instance
///   * `params` - parameters to pass to the primitive component definition
/// # Returns
///   Returns a concrete Component object or an error.
Creates a concrete instance of a primitive component.
Because primitive components can take in parameters, this
function attempts to resolve supplied parameters with a
primitive component to create a concrete component.
Creates a concrete instance of a primitive component . Because primitive components can take in parameters this function attempts to resolve supplied parameters with a primitive component to create a concrete component .
pub fn instantiate_primitive<S: AsRef<str>>(
        &self,
        name: S,
        id: &ast::Id,
        params: &[u64],
    ) -> Result<Component> {
        let sig = self.library_context.resolve(id, params)?;
        Ok(Component::from_signature(name, sig))
    }
pub fn instantiate_primitive < S : AsRef < str > > ( & self , name : S , id : & ast :: Id , params : & [ u64 ] , ) -> Result < Component > { let sig = self . library_context . resolve ( id , params ) ? ; Ok ( Component :: from_signature ( name , sig ) ) }
Creates a concrete instance of a primitive component.
Creates a concrete instance of a primitive component .
Returns a concrete Component object or an error.
Returns a concrete Component object or an error .
&self
name
S
id
&ast::Id
params
&[u64]