fido 0.2.1

A blazing-fast, keyboard-driven social platform for developers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::App;

impl App {
    /// Switch to next tab
    pub fn next_tab(&mut self) {
        let next = self.current_tab.next();
        self.try_switch_tab(next);
    }

    /// Switch to previous tab
    pub fn previous_tab(&mut self) {
        let prev = self.current_tab.previous();
        self.try_switch_tab(prev);
    }
}