fn finish(&mut self, comp: &mut Component, _x: &Context) -> VisResult {
        for (group, _) in comp.structure.groups.iter() {
            if let Some(group_name) = group {
                if !self.used_groups.contains(group_name) {
                    return Err(Error::UnusedGroup(group_name.clone()));
                }
            }
        }

        Ok(Action::Continue)
    }
/// Check if all defined groups were used in the control
Check if all defined groups were used in the control
Check if all defined groups were used in the control
fn finish(&mut self, comp: &mut Component, _x: &Context) -> VisResult {
        for (group, _) in comp.structure.groups.iter() {
            if let Some(group_name) = group {
                if !self.used_groups.contains(group_name) {
                    return Err(Error::UnusedGroup(group_name.clone()));
                }
            }
        }
        Ok(Action::Continue)
    }
fn finish ( & mut self , comp : & mut Component , _x : & Context ) -> VisResult { for ( group , _ ) in comp . structure . groups . iter ( ) { if let Some ( group_name ) = group { if ! self . used_groups . contains ( group_name ) { return Err ( Error :: UnusedGroup ( group_name . clone ( ) ) ) ; } } } Ok ( Action :: Continue ) }
Check if all defined groups were used in the control
Check if all defined groups were used in the control
&mut self
comp
&mut Component
_x
&Context