Skip to main content

EnabledFn

Type Alias EnabledFn 

Source
pub type EnabledFn = Rc<dyn Fn(&App) -> Result<(), String>>;
Expand description

Whether a command can run now; Err says why not (shown greyed in menus and search).

Aliased Typeยง

pub struct EnabledFn { /* private fields */ }