pub fn move_component(&mut self, dst_index: usize) {
        if dst_index < self.layout.components.len() {
            while self.selected_component > dst_index {
                self.move_component_up();
            }
            while self.selected_component < dst_index {
                self.move_component_down();
            }
        }
    }
/// Moves the selected component to the index provided. You may not provide
/// an invalid index.
Moves the selected component to the index provided. You may not provide
an invalid index.
Moves the selected component to the index provided . You may not provide an invalid index .
pub fn move_component(&mut self, dst_index: usize) {
        if dst_index < self.layout.components.len() {
            while self.selected_component > dst_index {
                self.move_component_up();
            }
            while self.selected_component < dst_index {
                self.move_component_down();
            }
        }
    }
pub fn move_component ( & mut self , dst_index : usize ) { if dst_index < self . layout . components . len ( ) { while self . selected_component > dst_index { self . move_component_up ( ) ; } while self . selected_component < dst_index { self . move_component_down ( ) ; } } }
Moves the selected component to the index provided.
Moves the selected component to the index provided .
&mut self
dst_index
usize
&mut self
dst_index
usize