pub struct FlagError {
pub message: String,
}Expand description
A parse failure; Display is the message that FlagSet::parse reports.
Fields§
§message: StringThe error text, e.g. flag: help requested or invalid value "v" for flag -name: ....
Implementations§
Trait Implementations§
impl Eq for FlagError
Source§impl Error for FlagError
impl Error for FlagError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for FlagError
Auto Trait Implementations§
impl Forget for FlagError
impl Freeze for FlagError
impl Move for FlagError
impl RefUnwindSafe for FlagError
impl Send for FlagErrorwhere
RawVecInner: Send,
impl Sync for FlagErrorwhere
RawVecInner: Sync,
impl Unpin for FlagError
impl UnsafeUnpin for FlagError
impl UnwindSafe for FlagErrorwhere
RawVecInner: UnwindSafe,
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