pub enum FlagParseError {
BoolParseError,
IntegerParseError,
StringParseError,
}
Expand description
Common errors for flag argument parsing.
Variants§
BoolParseError
Invalid bool. E.g. yes
IntegerParseError
Invalid integer. E.g. 100XYZ
StringParseError
Invalid string. Invalid UTF-8 in unix-like platform or invalid UTF-16 in Windows.
Trait Implementations§
Source§impl Debug for FlagParseError
impl Debug for FlagParseError
Source§impl Display for FlagParseError
impl Display for FlagParseError
Source§impl Error for FlagParseError
impl Error for FlagParseError
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 FlagParseError
impl RefUnwindSafe for FlagParseError
impl Send for FlagParseError
impl Sync for FlagParseError
impl Unpin for FlagParseError
impl UnwindSafe for FlagParseError
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