pub fn remove_component(&mut self) {
        if self.can_remove_component() {
            self.layout.components.remove(self.selected_component);
            if self.selected_component >= self.layout.components.len() {
                self.selected_component = self.layout.components.len() - 1;
            }
            self.layout.remount();
        }
    }
/// Removes the currently selected component, unless there's only one
/// component in the layout. The next component becomes the selected
/// component. If there's none, the previous component becomes the selected
/// component instead.
Removes the currently selected component, unless there's only one
component in the layout. The next component becomes the selected
component. If there's none, the previous component becomes the selected
component instead.
Removes the currently selected component unless there ' s only one component in the layout . The next component becomes the selected component . If there ' s none the previous component becomes the selected component instead .
pub fn remove_component(&mut self) {
        if self.can_remove_component() {
            self.layout.components.remove(self.selected_component);
            if self.selected_component >= self.layout.components.len() {
                self.selected_component = self.layout.components.len() - 1;
            }
            self.layout.remount();
        }
    }
pub fn remove_component ( & mut self ) { if self . can_remove_component ( ) { self . layout . components . remove ( self . selected_component ) ; if self . selected_component >= self . layout . components . len ( ) { self . selected_component = self . layout . components . len ( ) - 1 ; } self . layout . remount ( ) ; } }
Removes the currently selected component, unless there's only one
component in the layout.
Removes the currently selected component unless there ' s only one component in the layout .
&mut self
&mut self