pub fn prev(&mut self) {
        if let Some(cur_key) = self.current_id.as_ref().cloned() {
            let idx_key = Self::index_key(&cur_key, &self.key_order);
            let idx = (self.key_order.len() + idx_key - 1) % self.key_order.len();

            let key =&self.key_order[idx].clone();
            self.set_active_tab(key)
                .expect("Key content changed during operation, this should not happen");
        }
    }
/// Set the active tab to the previous tab in order.
Set the active tab to the previous tab in order.
Set the active tab to the previous tab in order .
pub fn prev(&mut self) {
        if let Some(cur_key) = self.current_id.as_ref().cloned() {
            let idx_key = Self::index_key(&cur_key, &self.key_order);
            let idx = (self.key_order.len() + idx_key - 1) % self.key_order.len();
            let key =&self.key_order[idx].clone();
            self.set_active_tab(key)
                .expect("Key content changed during operation, this should not happen");
        }
    }
pub fn prev ( & mut self ) { if let Some ( cur_key ) = self . current_id . as_ref ( ) . cloned ( ) { let idx_key = Self :: index_key ( & cur_key , & self . key_order ) ; let idx = ( self . key_order . len ( ) + idx_key - 1 ) % self . key_order . len ( ) ; let key = & self . key_order [ idx ] . clone ( ) ; self . set_active_tab ( key ) . expect ( " " ) ; } }
Set the active tab to the previous tab in order.
Set the active tab to the previous tab in order .
&mut self