pub fn add_primitive<S: AsRef<str>>(
        &mut self,
        id: ast::Id,
        name: S,
        comp: &Component,
        params: &[u64],
    ) -> NodeIndex {
        let cell =
            Cell::prim(id.clone(), name.as_ref().into(), params.to_vec());
        self.add_cell(id, comp, cell)
    }
/// Adds a primitive component node to the structure graph.
/// XXX(ken): Perhaps change this to allow implicit conversion
/// to generate the primitive compinst?
///
/// # Arguments
///   * `id` - the subcomponent identifier
///   * `name` - the subcomponent type
///   * `comp` - the component object
///   * `params` - the parameters for the component instance
Adds a primitive component node to the structure graph.
Adds a primitive component node to the structure graph .
pub fn add_primitive<S: AsRef<str>>(
        &mut self,
        id: ast::Id,
        name: S,
        comp: &Component,
        params: &[u64],
    ) -> NodeIndex {
        let cell =
            Cell::prim(id.clone(), name.as_ref().into(), params.to_vec());
        self.add_cell(id, comp, cell)
    }
pub fn add_primitive < S : AsRef < str > > ( & mut self , id : ast :: Id , name : S , comp : & Component , params : & [ u64 ] , ) -> NodeIndex { let cell = Cell :: prim ( id . clone ( ) , name . as_ref ( ) . into ( ) , params . to_vec ( ) ) ; self . add_cell ( id , comp , cell ) }
Adds a primitive component node to the structure graph.
Adds a primitive component node to the structure graph .
&mut self
id
ast::Id
name
S
comp
&Component
params
&[u64]