Trait Callback

Source
pub trait Callback<State>:
    CallbackClone<State>
    + Sync
    + Send
where State: Clone,
{ // Required method fn call( &self, cmd: &mut ClapCmd<State>, matches: ArgMatches, ) -> ClapCmdResult; }

Required Methods§

Source

fn call(&self, cmd: &mut ClapCmd<State>, matches: ArgMatches) -> ClapCmdResult

Implementors§

Source§

impl<State, F> Callback<State> for F
where State: Clone + Sync + Send, F: Clone + 'static + Sync + Send + for<'r> Fn(&mut ClapCmd<State>, ArgMatches) -> ClapCmdResult,