[][src]Trait go_flag::FlagSetter

pub trait FlagSetter {
    fn is_bool_flag(&self) -> bool;
fn set(
        &mut self,
        value: Option<&OsStr>,
        warnings: Option<&mut Vec<FlagWarning>>
    ) -> Result<(), FlagParseError>; }

Places that can store parsed values.

All implementors of FlagValue implement this.

Required methods

fn is_bool_flag(&self) -> bool

Indicates whether the flag is a boolean flag. Similar to FlagValue::is_bool_flag.

For most types, this is false.

fn set(
    &mut self,
    value: Option<&OsStr>,
    warnings: Option<&mut Vec<FlagWarning>>
) -> Result<(), FlagParseError>

Parse a flag argument and store the result.

Loading content...

Implementors

impl<T: FlagValue> FlagSetter for T[src]

Loading content...