pub fn select_only(&mut self, index: usize) {
        if index >= self.run.len() {
            panic!("Index out of bounds for segment selection.");
        }
        self.selected_segments.clear();
        self.selected_segments.push(index);
    }
/// Selects the segment with the given index. All other segments are
/// unselected. The segment chosen also becomes the active segment.
///
/// # Panics
///
/// This panics if the index of the segment provided is out of bounds.
Selects the segment with the given index. All other segments are
unselected. The segment chosen also becomes the active segment.
Selects the segment with the given index . All other segments are unselected . The segment chosen also becomes the active segment .
pub fn select_only(&mut self, index: usize) {
        if index >= self.run.len() {
            panic!("Index out of bounds for segment selection.");
        }
        self.selected_segments.clear();
        self.selected_segments.push(index);
    }
pub fn select_only ( & mut self , index : usize ) { if index >= self . run . len ( ) { panic ! ( " " ) ; } self . selected_segments . clear ( ) ; self . selected_segments . push ( index ) ; }
Selects the segment with the given index.
Selects the segment with the given index .
&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 .