Trait clapcmd::Callback

source ·
pub trait Callback<State>: CallbackClone<State> + Sync + Sendwhere
    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 Fwhere State: Clone + Sync + Send, F: Clone + 'static + Sync + Send + for<'r> Fn(&mut ClapCmd<State>, ArgMatches) -> ClapCmdResult,