[−][src]Trait go_flag::FlagSetter
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>
&mut self,
value: Option<&OsStr>,
warnings: Option<&mut Vec<FlagWarning>>
) -> Result<(), FlagParseError>
Parse a flag argument and store the result.
Implementors
impl<T: FlagValue> FlagSetter for T
[src]
fn is_bool_flag(&self) -> bool
[src]
fn set(
&mut self,
value: Option<&OsStr>,
warnings: Option<&mut Vec<FlagWarning>>
) -> Result<(), FlagParseError>
[src]
&mut self,
value: Option<&OsStr>,
warnings: Option<&mut Vec<FlagWarning>>
) -> Result<(), FlagParseError>