pub enum ParseValueError<E> {
InvalidUtf8 {
name: &'static str,
reason: Utf8Error,
},
Malformed {
name: &'static str,
reason: E,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl<E: Clone> Clone for ParseValueError<E>
impl<E: Clone> Clone for ParseValueError<E>
Source§fn clone(&self) -> ParseValueError<E>
fn clone(&self) -> ParseValueError<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: Debug> Debug for ParseValueError<E>
impl<E: Debug> Debug for ParseValueError<E>
Source§impl<E> Display for ParseValueError<E>where
E: Display,
impl<E> Display for ParseValueError<E>where
E: Display,
Source§impl<E> Error for ParseValueError<E>where
E: Error,
impl<E> Error for ParseValueError<E>where
E: Error,
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<E: Error + Send + Sync + 'static> From<ParseValueError<E>> for Error
impl<E: Error + Send + Sync + 'static> From<ParseValueError<E>> for Error
Source§fn from(f: ParseValueError<E>) -> Self
fn from(f: ParseValueError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for ParseValueError<E>
impl<E: PartialEq> PartialEq for ParseValueError<E>
impl<E: Eq> Eq for ParseValueError<E>
impl<E> StructuralPartialEq for ParseValueError<E>
Auto Trait Implementations§
impl<E> Freeze for ParseValueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ParseValueError<E>where
E: RefUnwindSafe,
impl<E> Send for ParseValueError<E>where
E: Send,
impl<E> Sync for ParseValueError<E>where
E: Sync,
impl<E> Unpin for ParseValueError<E>where
E: Unpin,
impl<E> UnwindSafe for ParseValueError<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