Trait Value
pflag
pub trait Value { fn set(&mut self, val: String) -> Result<(), String>; fn value(&self) -> String; fn typ(&self) -> &str { ... } }
Value is a trait representing the value stored in a flag.
(The default value is represented as a string.)
fn set(&mut self, val: String) -> Result<(), String>
fn value(&self) -> String
fn typ(&self) -> &str
impl<T: ToString + FromStr<Err: Debug> + Debug> Value for T