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