pub fn select_additionally(&mut self, index: usize) {
        if index >= self.run.len() {
            panic!("Index out of bounds for segment selection.");
        }
        self.selected_segments.retain(|&i| i != index);
        self.selected_segments.push(index);
    }
/// In addition to the segments that are already selected, the segment with
/// the given index is being selected. The segment chosen also becomes the
/// active segment.
///
/// # Panics
///
/// This panics if the index of the segment provided is out of bounds.
In addition to the segments that are already selected, the segment with
the given index is being selected. The segment chosen also becomes the
active segment.
In addition to the segments that are already selected the segment with the given index is being selected . The segment chosen also becomes the active segment .
pub fn select_additionally(&mut self, index: usize) {
        if index >= self.run.len() {
            panic!("Index out of bounds for segment selection.");
        }
        self.selected_segments.retain(|&i| i != index);
        self.selected_segments.push(index);
    }
pub fn select_additionally ( & mut self , index : usize ) { if index >= self . run . len ( ) { panic ! ( " " ) ; } self . selected_segments . retain ( | & i | i != index ) ; self . selected_segments . push ( index ) ; }
In addition to the segments that are already selected, the segment with
the given index is being selected.
In addition to the segments that are already selected the segment with the given index is being selected .
&mut self
index
usize
&mut self
index
usize
panics
This panics if the index of the segment provided is out of bounds.
This panics if the index of the segment provided is out of bounds .