pub fn prev_tab_idx(&self) -> Option<usize> {
        match self.selected_tab_idx() {
            Some(idx) => {
                if idx == 0 {
                    if self.num_tabs() > 1 {
                        Some(self.num_tabs() - 1)
                    } else {
                        Some(0)
                    }
                } else {
                    Some(idx - 1)
                }
            },
            None => None,
        }
    }
/// Get index of next older tab.
Get index of next older tab.
Get index of next older tab .
pub fn prev_tab_idx(&self) -> Option<usize> {
        match self.selected_tab_idx() {
            Some(idx) => {
                if idx == 0 {
                    if self.num_tabs() > 1 {
                        Some(self.num_tabs() - 1)
                    } else {
                        Some(0)
                    }
                } else {
                    Some(idx - 1)
                }
            },
            None => None,
        }
    }
pub fn prev_tab_idx ( & self ) -> Option < usize > { match self . selected_tab_idx ( ) { Some ( idx ) => { if idx == 0 { if self . num_tabs ( ) > 1 { Some ( self . num_tabs ( ) - 1 ) } else { Some ( 0 ) } } else { Some ( idx - 1 ) } } , None => None , } }
Get index of next older tab.
Get index of next older tab .
&self
&self