pub fn duplicate_component(&mut self) {
        let index = self.selected_component;
        let new_index = index + 1;

        let component = self.layout.components[index].clone();
        self.layout.components.insert(new_index, component);

        self.selected_component = new_index;
        self.layout.remount();
    }
/// Duplicates the currently selected component. The copy gets placed right
/// after the selected component and becomes the newly selected component.
Duplicates the currently selected component. The copy gets placed right
after the selected component and becomes the newly selected component.
Duplicates the currently selected component . The copy gets placed right after the selected component and becomes the newly selected component .
pub fn duplicate_component(&mut self) {
        let index = self.selected_component;
        let new_index = index + 1;
        let component = self.layout.components[index].clone();
        self.layout.components.insert(new_index, component);
        self.selected_component = new_index;
        self.layout.remount();
    }
pub fn duplicate_component ( & mut self ) { let index = self . selected_component ; let new_index = index + 1 ; let component = self . layout . components [ index ] . clone ( ) ; self . layout . components . insert ( new_index , component ) ; self . selected_component = new_index ; self . layout . remount ( ) ; }
Duplicates the currently selected component.
Duplicates the currently selected component .
&mut self
&mut self