cargo-port 0.1.4

A TUI for inspecting and managing Rust projects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::App;
use super::AppPaneId;
use super::LANG_TAB_ORDER;
use super::Pane;
use super::TabStop;
use super::lang_is_tabbable;

/// `Pane<App>` host for the Lang detail pane. No pane-local actions —
/// `Clean` lives on `AppGlobalAction`, and the pane has no
/// row-conditional dispatch.
pub(super) struct LangPane;

impl Pane<App> for LangPane {
    const APP_PANE_ID: AppPaneId = AppPaneId::Lang;

    fn tab_stop() -> TabStop<App> { TabStop::ordered(LANG_TAB_ORDER, lang_is_tabbable) }
}