pub enum ParseArgError<E> {
FromStr(E),
InvalidUtf8,
}
Expand description
Possible error when parsing certain arguments.
This is used for bridging implementations of FromStr
, because they require UTF-8 encoded inputs.
Variants§
Trait Implementations§
Source§impl<E: Clone> Clone for ParseArgError<E>
impl<E: Clone> Clone for ParseArgError<E>
Source§fn clone(&self) -> ParseArgError<E>
fn clone(&self) -> ParseArgError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Display> Debug for ParseArgError<E>
Debug
is implemented via Display
in order to make using ?
operator in main()
nice.
impl<E: Display> Debug for ParseArgError<E>
Debug
is implemented via Display
in order to make using ?
operator in main()
nice.
Source§impl<E: Display> Display for ParseArgError<E>
impl<E: Display> Display for ParseArgError<E>
Source§impl<E: Error> Error for ParseArgError<E>
impl<E: Error> Error for ParseArgError<E>
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()
Source§impl<E: Display> From<E> for ParseArgError<E>
impl<E: Display> From<E> for ParseArgError<E>
Source§impl<E: Hash> Hash for ParseArgError<E>
impl<E: Hash> Hash for ParseArgError<E>
Source§impl<E: PartialEq> PartialEq for ParseArgError<E>
impl<E: PartialEq> PartialEq for ParseArgError<E>
impl<E: Copy> Copy for ParseArgError<E>
impl<E: Eq> Eq for ParseArgError<E>
impl<E> StructuralPartialEq for ParseArgError<E>
Auto Trait Implementations§
impl<E> Freeze for ParseArgError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ParseArgError<E>where
E: RefUnwindSafe,
impl<E> Send for ParseArgError<E>where
E: Send,
impl<E> Sync for ParseArgError<E>where
E: Sync,
impl<E> Unpin for ParseArgError<E>where
E: Unpin,
impl<E> UnwindSafe for ParseArgError<E>where
E: 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