pub trait ListPanelSpec {
type Row: SearchRow + Clone + Send + Sync + 'static;
const TITLE: &'static str;
const HAS_FILTER: bool = true;
// Required methods
fn submit(row: &Self::Row, tx: &AppTx);
fn hints() -> Vec<(String, String)>;
// Provided method
fn context_event(_row: &Self::Row) -> Option<AppEvent> { ... }
}Expand description
What varies between list-shaped drawer views. The panel is the depth; each view is a thin adapter of this seam.
Required Associated Constants§
Provided Associated Constants§
Sourceconst HAS_FILTER: bool = true
const HAS_FILTER: bool = true
Whether the top row is a typed filter input (true: every key goes
to the list engine; false: only navigation keys reach the list —
plain letters stay free for the host, e.g. LINKS’ b/o/u).
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn context_event(_row: &Self::Row) -> Option<AppEvent>
fn context_event(_row: &Self::Row) -> Option<AppEvent>
The event a right-click on a row fires (rows that are real notes
open the file-ops menu). None = right-click selects only.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".