fn start(&mut self, comp: &mut Component, _x: &Context) -> VisResult {
        for (_, node) in comp.structure.component_iterator() {
            if self.reserved_names.contains(&node.name.id) {
                return Err(Error::ReservedName(node.name.clone()));
            }

            // If this is a cell, check for clash with group name.
            if let NodeData::Cell(_) = &node.data {
                if comp.structure.groups.contains_key(&Some(node.name.clone()))
                {
                    return Err(Error::AlreadyBound(
                        node.name.clone(),
                        "group".to_string(),
                    ));
                }
            }
        }
        Ok(Action::Continue)
    }
/// Check to see if any of the components use a reserved name or if the
/// same name is bound by a group and a component.
Check to see if any of the components use a reserved name or if the
same name is bound by a group and a component.
Check to see if any of the components use a reserved name or if the same name is bound by a group and a component .
fn start(&mut self, comp: &mut Component, _x: &Context) -> VisResult {
        for (_, node) in comp.structure.component_iterator() {
            if self.reserved_names.contains(&node.name.id) {
                return Err(Error::ReservedName(node.name.clone()));
            }
            // If this is a cell, check for clash with group name.
            if let NodeData::Cell(_) = &node.data {
                if comp.structure.groups.contains_key(&Some(node.name.clone()))
                {
                    return Err(Error::AlreadyBound(
                        node.name.clone(),
                        "group".to_string(),
                    ));
                }
            }
        }
        Ok(Action::Continue)
    }
fn start ( & mut self , comp : & mut Component , _x : & Context ) -> VisResult { for ( _ , node ) in comp . structure . component_iterator ( ) { if self . reserved_names . contains ( & node . name . id ) { return Err ( Error :: ReservedName ( node . name . clone ( ) ) ) ; } // If this is a cell, check for clash with group name. if let NodeData :: Cell ( _ ) = & node . data { if comp . structure . groups . contains_key ( & Some ( node . name . clone ( ) ) ) { return Err ( Error :: AlreadyBound ( node . name . clone ( ) , " " . to_string ( ) , ) ) ; } } } Ok ( Action :: Continue ) }
Check to see if any of the components use a reserved name or if the
same name is bound by a group and a component.
Check to see if any of the components use a reserved name or if the same name is bound by a group and a component .
&mut self
comp
&mut Component
_x
&Context