[][src]Trait pflag::Value

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.)

Required methods

fn set(&mut self, val: String) -> Result<(), String>

fn value(&self) -> String

Loading content...

Provided methods

fn typ(&self) -> &str

Loading content...

Implementors

impl<T: ToString + FromStr<Err: Debug> + Debug> Value for T[src]

Loading content...