fn start_enable(
        &mut self,
        s: &Enable,
        comp: &mut Component,
        _x: &Context,
    ) -> VisResult {
        let st = &comp.structure;
        if !st.groups.contains_key(&Some(s.comp.clone())) {
            return Err(Error::UndefinedGroup(s.comp.clone()));
        }
        // Add the name of this group to set of used groups.
        self.used_groups.insert(s.comp.clone());

        Ok(Action::Continue)
    }
/// Check to see if all groups mentioned in the control are defined.
Check to see if all groups mentioned in the control are defined.
Check to see if all groups mentioned in the control are defined .
fn start_enable(
        &mut self,
        s: &Enable,
        comp: &mut Component,
        _x: &Context,
    ) -> VisResult {
        let st = &comp.structure;
        if !st.groups.contains_key(&Some(s.comp.clone())) {
            return Err(Error::UndefinedGroup(s.comp.clone()));
        }
        // Add the name of this group to set of used groups.
        self.used_groups.insert(s.comp.clone());
        Ok(Action::Continue)
    }
fn start_enable ( & mut self , s : & Enable , comp : & mut Component , _x : & Context , ) -> VisResult { let st = & comp . structure ; if ! st . groups . contains_key ( & Some ( s . comp . clone ( ) ) ) { return Err ( Error :: UndefinedGroup ( s . comp . clone ( ) ) ) ; } // Add the name of this group to set of used groups. self . used_groups . insert ( s . comp . clone ( ) ) ; Ok ( Action :: Continue ) }
Check to see if all groups mentioned in the control are defined.
Check to see if all groups mentioned in the control are defined .
&mut self
s
&Enable
comp
&mut Component
_x
&Context