Struct rustop::Multi
[−]
[src]
pub struct Multi<T>(pub T, pub bool);
A multi argument option.
The first argument is a collection, the second a flag whether this argument has been seen before.
Trait Implementations
impl<'a, T> CommandLineArgument for Multi<&'a mut Vec<T>> where
T: FromStr + DefaultName + Debug,
<T as FromStr>::Err: Error + 'static,
[src]
T: FromStr + DefaultName + Debug,
<T as FromStr>::Err: Error + 'static,
fn parse_value(&mut self, arg: &str) -> Result<(), ArgError>
Add the value from the command line string.
fn is_multi(&self) -> bool
Return true if the argument can parsed multiple times.
fn default_value(&self) -> Option<String>
Return the initial value as a string.
fn write_name(&self, name: Option<&str>) -> Option<String>
Return a description of a argument of this type. Read more
fn set_default(&mut self) -> Result<(), ArgError>
Called if the option has been specified without argument. Read more
fn set_unseen(&mut self)
Called if the argument has never been seen. Read more