pub fn move_segments_down(&mut self) {
        if !self.can_move_segments_down() {
            return;
        }

        for i in (0..self.run.len() - 1).rev() {
            if self.selected_segments.contains(&i) {
                self.switch_segments(i);
            }
        }

        for segment in &mut self.selected_segments {
            if *segment < self.run.len() - 1 {
                *segment += 1;
            }
        }

        self.times_modified();
        self.fix();
    }
/// Moves all the selected segments down, unless the last segment is
/// selected. The run's information is automatically adjusted properly. The
/// active segment stays the active segment.
Moves all the selected segments down, unless the last segment is
selected. The run's information is automatically adjusted properly. The
active segment stays the active segment.
Moves all the selected segments down unless the last segment is selected . The run ' s information is automatically adjusted properly . The active segment stays the active segment .
pub fn move_segments_down(&mut self) {
        if !self.can_move_segments_down() {
            return;
        }
        for i in (0..self.run.len() - 1).rev() {
            if self.selected_segments.contains(&i) {
                self.switch_segments(i);
            }
        }
        for segment in &mut self.selected_segments {
            if *segment < self.run.len() - 1 {
                *segment += 1;
            }
        }
        self.times_modified();
        self.fix();
    }
pub fn move_segments_down ( & mut self ) { if ! self . can_move_segments_down ( ) { return ; } for i in ( 0 .. self . run . len ( ) - 1 ) . rev ( ) { if self . selected_segments . contains ( & i ) { self . switch_segments ( i ) ; } } for segment in & mut self . selected_segments { if * segment < self . run . len ( ) - 1 { * segment += 1 ; } } self . times_modified ( ) ; self . fix ( ) ; }
Moves all the selected segments down, unless the last segment is
selected.
Moves all the selected segments down unless the last segment is selected .
&mut self
&mut self