argparse::action

Trait TypedAction

Source
pub trait TypedAction<T> {
    // Required method
    fn bind<'x>(&self, _: Rc<RefCell<&'x mut T>>) -> Action<'x>;
}

Required Methods§

Source

fn bind<'x>(&self, _: Rc<RefCell<&'x mut T>>) -> Action<'x>

Implementors§

Source§

impl TypedAction<bool> for StoreFalse

Source§

impl TypedAction<bool> for StoreTrue

Source§

impl<T> TypedAction<Vec<T>> for ParseCollect
where T: 'static + FromCommandLine + Clone,

Source§

impl<T: 'static + FromCommandLine + Clone> TypedAction<Vec<T>> for ParseList

Source§

impl<T: 'static + FromCommandLine> TypedAction<Option<T>> for ParseOption

Source§

impl<T: 'static + FromCommandLine> TypedAction<T> for Parse

Source§

impl<T: 'static + Clone> TypedAction<Vec<T>> for PushConst<T>

Source§

impl<T: 'static + Clone> TypedAction<T> for StoreConst<T>

Source§

impl<T: 'static + Add<Output = T> + Clone> TypedAction<T> for IncrBy<T>

Source§

impl<T: 'static + Sub<Output = T> + Clone> TypedAction<T> for DecrBy<T>

Source§

impl<T: 'static + FromStr + Clone> TypedAction<Vec<T>> for Collect

Source§

impl<T: 'static + FromStr + Clone> TypedAction<Vec<T>> for List

Source§

impl<T: 'static + FromStr> TypedAction<Option<T>> for StoreOption

Source§

impl<T: 'static + FromStr> TypedAction<T> for Store