pub enum FlagWarning {
FlagAfterArg {
flag: String,
},
ShortLong {
flag: String,
},
LongShort {
flag: String,
},
FlagValue {
value: String,
},
}
Expand description
Common warnings for flag parsing.
Variants§
FlagAfterArg
Flag-like syntax appearing after argument.
ShortLong
Long flag with single minus. E.g. -lines
LongShort
Short flag with double minus. E.g. --f
FlagValue
Nonstandard value format for flag argument. E.g. --lines=0x10
Trait Implementations§
Source§impl Debug for FlagWarning
impl Debug for FlagWarning
Source§impl Display for FlagWarning
impl Display for FlagWarning
Source§impl Error for FlagWarning
impl Error for FlagWarning
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for FlagWarning
impl RefUnwindSafe for FlagWarning
impl Send for FlagWarning
impl Sync for FlagWarning
impl Unpin for FlagWarning
impl UnwindSafe for FlagWarning
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more