pub enum TryParseError<T> {
ExpectedMismatch(&'static str, String),
InvalidUtf8String,
Err(T),
}
Expand description
Generic error type for parsing.
Variants§
ExpectedMismatch(&'static str, String)
The pattern in the source string doesn’t match the given pattern.
InvalidUtf8String
The input string was given as invalid utf8.
Err(T)
Contains a generic error from T
.
Trait Implementations§
Source§impl<T: Debug> Debug for TryParseError<T>
impl<T: Debug> Debug for TryParseError<T>
Source§impl<T> From<T> for TryParseError<T>
impl<T> From<T> for TryParseError<T>
Source§impl<T: PartialEq> PartialEq for TryParseError<T>
impl<T: PartialEq> PartialEq for TryParseError<T>
impl<T> StructuralPartialEq for TryParseError<T>
Auto Trait Implementations§
impl<T> Freeze for TryParseError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TryParseError<T>where
T: RefUnwindSafe,
impl<T> Send for TryParseError<T>where
T: Send,
impl<T> Sync for TryParseError<T>where
T: Sync,
impl<T> Unpin for TryParseError<T>where
T: Unpin,
impl<T> UnwindSafe for TryParseError<T>where
T: 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