[][src]Trait pflag::Value

pub trait Value {
    fn set(&mut self, val: String) -> Result<(), ValueError>;
fn value(&self) -> String; fn typ(&self) -> &str { ... } }

Value is a trait representing the value stored in a flag.

Required methods

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

set sets the underlying value.

fn value(&self) -> String

value retrieves the current value as a String.

Loading content...

Provided methods

fn typ(&self) -> &str

typ returns the type name as a string.

Loading content...

Implementors

impl<E, T> Value for Slice<T> where
    E: Error + 'static,
    T: ToString + FromStr<Err = E>, 
[src]

impl<E, T> Value for T where
    E: Error + 'static,
    T: ToString + FromStr<Err = E>, 
[src]

Loading content...